1 00:00:01,250 --> 00:00:03,130 Welcome back. In this lesson, 2 00:00:03,130 --> 00:00:07,120 we are going to talk about "Optimizing Resource Management". 3 00:00:07,120 --> 00:00:09,084 And I'm just going to be upfront with you right 4 00:00:09,084 --> 00:00:11,838 at the start, this is going to be kind of a weird lesson, 5 00:00:11,838 --> 00:00:15,200 at least as far as the DP-203 is concerned. 6 00:00:15,200 --> 00:00:18,811 See, there's a few topics in the exam requirements 7 00:00:18,811 --> 00:00:22,650 that don't really tie to much of anything. 8 00:00:22,650 --> 00:00:24,300 They're very vague. 9 00:00:24,300 --> 00:00:26,440 So some are extremely clear, 10 00:00:26,440 --> 00:00:29,421 like we need to figure out how to set up distribution. 11 00:00:29,421 --> 00:00:31,260 Okay, well, I can teach you that. 12 00:00:31,260 --> 00:00:32,480 But some of the things like this 13 00:00:32,480 --> 00:00:35,060 are rather obscure or vague. 14 00:00:35,060 --> 00:00:37,690 And so for the DP-203, there's not going to be 15 00:00:37,690 --> 00:00:40,000 a ton of practical application, 16 00:00:40,000 --> 00:00:42,019 but it is important because it is included 17 00:00:42,019 --> 00:00:44,770 in the exam requirements. 18 00:00:44,770 --> 00:00:48,471 So with that, I'm going to give you a few optimization tips 19 00:00:48,471 --> 00:00:50,593 for your Azure environment. 20 00:00:51,810 --> 00:00:54,852 All right. Number one, use ARM templates. 21 00:00:54,852 --> 00:00:56,640 ARM templates are really helpful 22 00:00:56,640 --> 00:01:01,640 because they help us to replicate our resources very fast. 23 00:01:01,680 --> 00:01:03,850 We have our blueprint for how we made 24 00:01:03,850 --> 00:01:06,950 all of the different resources in our environment. 25 00:01:06,950 --> 00:01:08,720 It also helps to give us some control, 26 00:01:08,720 --> 00:01:10,618 because there's something that we can go back with 27 00:01:10,618 --> 00:01:13,205 and we can use to audit and figure out exactly 28 00:01:13,205 --> 00:01:15,350 what we're building and why, 29 00:01:15,350 --> 00:01:18,840 and build some continuity between multiple groups 30 00:01:18,840 --> 00:01:21,253 building resources in Azure. 31 00:01:22,100 --> 00:01:25,330 Second, don't put everything in the same subscription. 32 00:01:25,330 --> 00:01:26,576 I've said this a couple of times, 33 00:01:26,576 --> 00:01:29,210 but it is a very important point. 34 00:01:29,210 --> 00:01:30,540 You don't want to have everything 35 00:01:30,540 --> 00:01:34,080 in the same subscription because, one, defense in depth. 36 00:01:34,080 --> 00:01:36,080 If everything is in the same subscription 37 00:01:36,080 --> 00:01:39,410 and someone gets one of your admin accounts, you're done. 38 00:01:39,410 --> 00:01:41,620 They have access to everything. 39 00:01:41,620 --> 00:01:43,555 If you've built multiple subscriptions, 40 00:01:43,555 --> 00:01:46,950 then they only have access to that 1 subscription. 41 00:01:46,950 --> 00:01:49,290 Or it could be built on dev and production. 42 00:01:49,290 --> 00:01:51,277 So if the dev environment is compromised, 43 00:01:51,277 --> 00:01:53,100 you're still okay in the production. 44 00:01:53,100 --> 00:01:55,480 So don't put everything in the same subscription. 45 00:01:55,480 --> 00:01:57,160 The second reason is compliance. 46 00:01:57,160 --> 00:01:59,738 A lot of times, there's regulatory requirements 47 00:01:59,738 --> 00:02:03,537 for how data is stored in your environment, 48 00:02:03,537 --> 00:02:06,110 and the separation that needs to be there for that. 49 00:02:06,110 --> 00:02:09,700 So make sure that you're looking at compliance as well. 50 00:02:09,700 --> 00:02:11,410 Third is management. 51 00:02:11,410 --> 00:02:13,750 If you built up subscriptions in an appropriate way, 52 00:02:13,750 --> 00:02:14,770 it's going to be easier 53 00:02:14,770 --> 00:02:18,011 for you to manage your environment as well. 54 00:02:18,011 --> 00:02:22,510 Third, Azure Advisor. Hey, this is a must-use. 55 00:02:22,510 --> 00:02:23,710 And since we haven't actually 56 00:02:23,710 --> 00:02:25,900 talked about Azure Advisor all that much, 57 00:02:25,900 --> 00:02:27,850 or really I think at all in this course, 58 00:02:27,850 --> 00:02:29,730 I'm going to actually jump into the portal, 59 00:02:29,730 --> 00:02:32,270 and we're going to take a look at Azure Advisor 60 00:02:32,270 --> 00:02:33,430 and how it functions. 61 00:02:33,430 --> 00:02:35,030 So let's just go ahead and do that, 62 00:02:35,030 --> 00:02:38,040 and I'll explain what it is as we go. 63 00:02:38,040 --> 00:02:40,506 So here we find ourselves in the Azure portal, 64 00:02:40,506 --> 00:02:41,962 and let's just go ahead 65 00:02:41,962 --> 00:02:45,920 and open up my Synapse workspace that we've been looking at. 66 00:02:45,920 --> 00:02:48,630 And you can see here, in our Synapse workspace, 67 00:02:48,630 --> 00:02:51,580 if I scroll down under Monitoring, 68 00:02:51,580 --> 00:02:54,400 there is Advisor Recommendations. 69 00:02:54,400 --> 00:02:55,770 This is something that you should be 70 00:02:55,770 --> 00:02:57,580 periodically looking at. 71 00:02:57,580 --> 00:02:58,910 It's going to be very helpful, 72 00:02:58,910 --> 00:03:00,140 and it's going to highlight anything 73 00:03:00,140 --> 00:03:02,150 that you have wrong in your environment, 74 00:03:02,150 --> 00:03:05,090 or ways that you can optimize as well. 75 00:03:05,090 --> 00:03:06,810 Now, we can access Advisor 76 00:03:06,810 --> 00:03:11,165 not just by going to the resource that we're interested in, 77 00:03:11,165 --> 00:03:14,023 but we can also search for Advisor, 78 00:03:14,930 --> 00:03:16,400 and I can go to it here. 79 00:03:16,400 --> 00:03:17,820 And this will pull up Advisor 80 00:03:17,820 --> 00:03:20,320 about my entire environment. 81 00:03:20,320 --> 00:03:21,610 And so if I want to see, 82 00:03:21,610 --> 00:03:22,640 you can see I have a couple of 83 00:03:22,640 --> 00:03:24,100 different recommendations here. 84 00:03:24,100 --> 00:03:26,950 If I clicked on that, it pulls up and it gives me 85 00:03:26,950 --> 00:03:29,600 a little bit of information on what's going on. 86 00:03:29,600 --> 00:03:34,130 So it wants me to add a policy to 87 00:03:34,130 --> 00:03:36,582 audit VMs that don't use managed disks, right? 88 00:03:36,582 --> 00:03:39,110 Now, for my case, I don't really care. 89 00:03:39,110 --> 00:03:42,569 This is for a course that's going away. 90 00:03:42,569 --> 00:03:45,100 So all of this environment's going to go away here. 91 00:03:45,100 --> 00:03:48,800 So it's not a huge concern because I'm not really using VMs, 92 00:03:48,800 --> 00:03:51,251 but it's something worth reading through. 93 00:03:51,251 --> 00:03:55,550 Also, enforce inherit a tag from the resource group. 94 00:03:55,550 --> 00:03:57,930 We've talked about how important tagging is. 95 00:03:57,930 --> 00:04:00,730 If this was a real production, or even a dev environment, 96 00:04:00,730 --> 00:04:03,010 this would be something I'd want to look at. 97 00:04:03,010 --> 00:04:05,730 So make sure that you're looking at Advisor, 98 00:04:05,730 --> 00:04:07,510 that's going to be very helpful for you 99 00:04:07,510 --> 00:04:09,890 as you move forward in your career. 100 00:04:09,890 --> 00:04:11,599 With that, let's do just a couple of key points 101 00:04:11,599 --> 00:04:13,750 to remember to close this out. 102 00:04:13,750 --> 00:04:15,640 First, think holistically. 103 00:04:15,640 --> 00:04:17,218 We've talked about this in the course. 104 00:04:17,218 --> 00:04:20,960 All of these concepts should blend together 105 00:04:20,960 --> 00:04:24,570 into 1 large picture of data management. 106 00:04:24,570 --> 00:04:27,230 So thinking about your ARM templates, 107 00:04:27,230 --> 00:04:29,910 that's an important piece of data management. 108 00:04:29,910 --> 00:04:31,624 Thinking about your security, 109 00:04:31,624 --> 00:04:33,854 data management, that's importance. 110 00:04:33,854 --> 00:04:37,000 So thinking about all of those different components, 111 00:04:37,000 --> 00:04:38,980 and not just the data is going to help you 112 00:04:38,980 --> 00:04:41,730 be a better data engineer. 113 00:04:41,730 --> 00:04:46,080 Next, for the DP-203, assume a very small application. 114 00:04:46,080 --> 00:04:47,460 This is something that's going to be helpful 115 00:04:47,460 --> 00:04:49,160 for you to have a background on. 116 00:04:49,160 --> 00:04:50,980 It's helpful because it was included 117 00:04:50,980 --> 00:04:52,210 in the exam requirements, 118 00:04:52,210 --> 00:04:54,410 but I wouldn't spend a whole lot of time here, 119 00:04:54,410 --> 00:04:55,300 because I'm not expecting 120 00:04:55,300 --> 00:04:58,010 a whole bunch of questions on the DP-203. 121 00:04:58,010 --> 00:04:59,398 So with that, let's stop talking, 122 00:04:59,398 --> 00:05:01,113 and I'll you see in the next video.