@xdev-asia/xdev-knowledge-mcp 1.0.41 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/01-domain-1-fundamentals-ai-ml/lessons/01-bai-1-ai-ml-deep-learning-concepts.md +287 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/01-domain-1-fundamentals-ai-ml/lessons/02-bai-2-ml-lifecycle-aws-services.md +258 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/02-domain-2-fundamentals-generative-ai/lessons/03-bai-3-generative-ai-foundation-models.md +218 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/02-domain-2-fundamentals-generative-ai/lessons/04-bai-4-llm-transformers-multimodal.md +232 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/03-domain-3-applications-foundation-models/lessons/05-bai-5-prompt-engineering-techniques.md +254 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/03-domain-3-applications-foundation-models/lessons/06-bai-6-rag-vector-databases-knowledge-bases.md +244 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/03-domain-3-applications-foundation-models/lessons/07-bai-7-fine-tuning-model-customization.md +247 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/03-domain-3-applications-foundation-models/lessons/08-bai-8-amazon-bedrock-deep-dive.md +276 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/04-domain-4-responsible-ai/lessons/09-bai-9-responsible-ai-fairness-bias-transparency.md +224 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/04-domain-4-responsible-ai/lessons/10-bai-10-aws-responsible-ai-tools.md +252 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/05-domain-5-security-compliance/lessons/11-bai-11-ai-security-data-privacy-compliance.md +279 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/chapters/05-domain-5-security-compliance/lessons/12-bai-12-exam-strategy-cheat-sheet.md +229 -0
- package/content/series/luyen-thi/luyen-thi-aws-ai-practitioner/index.md +257 -0
- package/content/series/luyen-thi/luyen-thi-aws-ml-specialty/chapters/01-phan-1-data-engineering/lessons/01-bai-1-data-repositories-ingestion.md +193 -0
- package/content/series/luyen-thi/luyen-thi-aws-ml-specialty/chapters/01-phan-1-data-engineering/lessons/02-bai-2-data-transformation.md +178 -0
- package/content/series/luyen-thi/luyen-thi-aws-ml-specialty/index.md +240 -0
- package/content/series/luyen-thi/luyen-thi-gcp-ml-engineer/index.md +225 -0
- package/data/categories.json +16 -4
- package/data/quizzes/aws-ai-practitioner.json +362 -0
- package/data/quizzes/aws-ml-specialty.json +200 -0
- package/data/quizzes/gcp-ml-engineer.json +200 -0
- package/data/quizzes.json +764 -0
- package/package.json +1 -1
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: 019c9619-lt01-d5-l11
|
|
3
|
+
title: 'Bài 11: AI Security, Data Privacy & Compliance on AWS'
|
|
4
|
+
slug: bai-11-ai-security-data-privacy-compliance
|
|
5
|
+
description: >-
|
|
6
|
+
IAM cho AI/ML workloads. Encryption at rest & in transit.
|
|
7
|
+
VPC endpoints cho Bedrock/SageMaker. PII detection.
|
|
8
|
+
AWS compliance programs. Data governance cho AI.
|
|
9
|
+
duration_minutes: 55
|
|
10
|
+
is_free: true
|
|
11
|
+
video_url: null
|
|
12
|
+
sort_order: 1
|
|
13
|
+
section_title: "Domain 5: Security, Compliance & Governance for AI (14%)"
|
|
14
|
+
course:
|
|
15
|
+
id: 019c9619-lt01-7001-c001-lt0100000001
|
|
16
|
+
title: 'Luyện thi AWS Certified AI Practitioner (AIF-C01)'
|
|
17
|
+
slug: luyen-thi-aws-ai-practitioner
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<div style="text-align: center; margin: 2rem 0;">
|
|
21
|
+
<img src="/storage/uploads/2026/04/aws-aif-bai11-ai-security-layers.png" alt="AI Security Layers on AWS" style="max-width: 800px; width: 100%; border-radius: 12px;" />
|
|
22
|
+
<p><em>AI Security Layers: Network, Identity, Data Protection và AI-specific Controls trên AWS</em></p>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<h2 id="security-overview"><strong>1. AI Security on AWS — Overview</strong></h2>
|
|
26
|
+
|
|
27
|
+
<p>AI workloads cần bảo mật ở <strong>nhiều layers</strong>: data, model, infrastructure, và application.</p>
|
|
28
|
+
|
|
29
|
+
<pre><code class="language-text">AI Security Layers:
|
|
30
|
+
┌─────────────────────────────────────────┐
|
|
31
|
+
│ APPLICATION SECURITY │
|
|
32
|
+
│ Guardrails, input validation, │
|
|
33
|
+
│ prompt injection prevention │
|
|
34
|
+
├─────────────────────────────────────────┤
|
|
35
|
+
│ MODEL SECURITY │
|
|
36
|
+
│ Model access control, versioning, │
|
|
37
|
+
│ model integrity, adversarial defense │
|
|
38
|
+
├─────────────────────────────────────────┤
|
|
39
|
+
│ DATA SECURITY │
|
|
40
|
+
│ Encryption, PII handling, data access │
|
|
41
|
+
│ control, audit logging │
|
|
42
|
+
├─────────────────────────────────────────┤
|
|
43
|
+
│ INFRASTRUCTURE SECURITY │
|
|
44
|
+
│ VPC, security groups, endpoints, │
|
|
45
|
+
│ network isolation, IAM │
|
|
46
|
+
└─────────────────────────────────────────┘
|
|
47
|
+
</code></pre>
|
|
48
|
+
|
|
49
|
+
<h2 id="iam"><strong>2. IAM for AI/ML Workloads</strong></h2>
|
|
50
|
+
|
|
51
|
+
<h3 id="iam-bedrock"><strong>2.1. IAM for Amazon Bedrock</strong></h3>
|
|
52
|
+
|
|
53
|
+
<table>
|
|
54
|
+
<thead><tr><th>Permission</th><th>What it controls</th></tr></thead>
|
|
55
|
+
<tbody>
|
|
56
|
+
<tr><td><code>bedrock:InvokeModel</code></td><td>Call a specific FM</td></tr>
|
|
57
|
+
<tr><td><code>bedrock:InvokeModelWithResponseStream</code></td><td>Streaming model invocation</td></tr>
|
|
58
|
+
<tr><td><code>bedrock:CreateKnowledgeBase</code></td><td>Create RAG knowledge bases</td></tr>
|
|
59
|
+
<tr><td><code>bedrock:CreateGuardrail</code></td><td>Create safety guardrails</td></tr>
|
|
60
|
+
<tr><td><code>bedrock:CreateModelCustomizationJob</code></td><td>Start fine-tuning jobs</td></tr>
|
|
61
|
+
</tbody>
|
|
62
|
+
</table>
|
|
63
|
+
|
|
64
|
+
<h3 id="iam-principles"><strong>2.2. IAM Best Practices for AI</strong></h3>
|
|
65
|
+
|
|
66
|
+
<ul>
|
|
67
|
+
<li><strong>Least privilege</strong>: Grant only required permissions per role</li>
|
|
68
|
+
<li><strong>Separate roles</strong>: Different roles for data scientists, ML engineers, admins</li>
|
|
69
|
+
<li><strong>Resource-based policies</strong>: Restrict access to specific models</li>
|
|
70
|
+
<li><strong>Service-linked roles</strong>: Let AWS services assume roles as needed</li>
|
|
71
|
+
<li><strong>Condition keys</strong>: Restrict by IP, VPC, time, MFA</li>
|
|
72
|
+
</ul>
|
|
73
|
+
|
|
74
|
+
<blockquote>
|
|
75
|
+
<p><strong>Exam tip:</strong> "How to restrict which foundation models a team can use in Bedrock?" → IAM policy with <code>bedrock:InvokeModel</code> and <strong>resource ARN</strong> for specific models.</p>
|
|
76
|
+
</blockquote>
|
|
77
|
+
|
|
78
|
+
<h2 id="encryption"><strong>3. Data Encryption</strong></h2>
|
|
79
|
+
|
|
80
|
+
<h3 id="encryption-rest"><strong>3.1. Encryption at Rest</strong></h3>
|
|
81
|
+
|
|
82
|
+
<table>
|
|
83
|
+
<thead><tr><th>Service</th><th>Default Encryption</th><th>Custom Key (KMS)</th></tr></thead>
|
|
84
|
+
<tbody>
|
|
85
|
+
<tr><td><strong>Amazon Bedrock</strong></td><td>AWS-managed key</td><td>Customer-managed KMS key</td></tr>
|
|
86
|
+
<tr><td><strong>SageMaker training</strong></td><td>AWS-managed key</td><td>Customer-managed KMS key</td></tr>
|
|
87
|
+
<tr><td><strong>SageMaker notebooks</strong></td><td>AWS-managed key</td><td>Customer-managed KMS key</td></tr>
|
|
88
|
+
<tr><td><strong>S3 (training data)</strong></td><td>SSE-S3</td><td>SSE-KMS, SSE-C</td></tr>
|
|
89
|
+
<tr><td><strong>Knowledge Bases vectors</strong></td><td>Depends on vector DB</td><td>KMS encryption supported</td></tr>
|
|
90
|
+
</tbody>
|
|
91
|
+
</table>
|
|
92
|
+
|
|
93
|
+
<h3 id="encryption-transit"><strong>3.2. Encryption in Transit</strong></h3>
|
|
94
|
+
|
|
95
|
+
<ul>
|
|
96
|
+
<li>All AWS API calls use <strong>TLS 1.2+</strong> by default</li>
|
|
97
|
+
<li>Bedrock API calls are encrypted in transit</li>
|
|
98
|
+
<li>SageMaker endpoints use HTTPS</li>
|
|
99
|
+
<li>Inter-node training communication: encrypted</li>
|
|
100
|
+
</ul>
|
|
101
|
+
|
|
102
|
+
<h3 id="kms"><strong>3.3. AWS KMS for AI</strong></h3>
|
|
103
|
+
|
|
104
|
+
<pre><code class="language-text">Use AWS KMS when you need:
|
|
105
|
+
✓ Control over encryption keys
|
|
106
|
+
✓ Key rotation policies
|
|
107
|
+
✓ CloudTrail audit of key usage
|
|
108
|
+
✓ Cross-account key sharing
|
|
109
|
+
✓ Compliance requirements (HIPAA, PCI-DSS)
|
|
110
|
+
</code></pre>
|
|
111
|
+
|
|
112
|
+
<h2 id="network"><strong>4. Network Security</strong></h2>
|
|
113
|
+
|
|
114
|
+
<h3 id="vpc-endpoints"><strong>4.1. VPC Endpoints for AI Services</strong></h3>
|
|
115
|
+
|
|
116
|
+
<p><strong>VPC endpoints</strong> cho phép truy cập AWS AI services <strong>privately</strong> — traffic không qua internet.</p>
|
|
117
|
+
|
|
118
|
+
<pre><code class="language-text">Without VPC Endpoint:
|
|
119
|
+
App in VPC → Internet Gateway → Public Internet → Bedrock API
|
|
120
|
+
|
|
121
|
+
With VPC Endpoint (PrivateLink):
|
|
122
|
+
App in VPC → VPC Endpoint → AWS Private Network → Bedrock API
|
|
123
|
+
(no internet!)
|
|
124
|
+
</code></pre>
|
|
125
|
+
|
|
126
|
+
<table>
|
|
127
|
+
<thead><tr><th>Service</th><th>VPC Endpoint Type</th></tr></thead>
|
|
128
|
+
<tbody>
|
|
129
|
+
<tr><td><strong>Amazon Bedrock</strong></td><td>Interface (PrivateLink)</td></tr>
|
|
130
|
+
<tr><td><strong>SageMaker Runtime</strong></td><td>Interface (PrivateLink)</td></tr>
|
|
131
|
+
<tr><td><strong>SageMaker API</strong></td><td>Interface (PrivateLink)</td></tr>
|
|
132
|
+
<tr><td><strong>Amazon S3</strong></td><td>Gateway or Interface</td></tr>
|
|
133
|
+
</tbody>
|
|
134
|
+
</table>
|
|
135
|
+
|
|
136
|
+
<h3 id="sagemaker-network"><strong>4.2. SageMaker Network Isolation</strong></h3>
|
|
137
|
+
|
|
138
|
+
<ul>
|
|
139
|
+
<li><strong>VPC mode</strong>: Run training/inference inside your VPC</li>
|
|
140
|
+
<li><strong>Network isolation</strong>: No internet access for containers (EnableNetworkIsolation=true)</li>
|
|
141
|
+
<li><strong>Security groups</strong>: Control inbound/outbound traffic</li>
|
|
142
|
+
<li><strong>Private subnets</strong>: No direct internet access</li>
|
|
143
|
+
</ul>
|
|
144
|
+
|
|
145
|
+
<blockquote>
|
|
146
|
+
<p><strong>Exam tip:</strong> "How to ensure Bedrock API calls don't traverse the public internet?" → <strong>VPC endpoint</strong> (AWS PrivateLink) for Amazon Bedrock.</p>
|
|
147
|
+
</blockquote>
|
|
148
|
+
|
|
149
|
+
<h2 id="pii"><strong>5. PII Detection & Data Privacy</strong></h2>
|
|
150
|
+
|
|
151
|
+
<h3 id="pii-services"><strong>5.1. PII Detection Services</strong></h3>
|
|
152
|
+
|
|
153
|
+
<table>
|
|
154
|
+
<thead><tr><th>Service</th><th>PII Capability</th><th>Data Type</th></tr></thead>
|
|
155
|
+
<tbody>
|
|
156
|
+
<tr><td><strong>Amazon Comprehend</strong></td><td>Detect and redact PII entities</td><td>Text</td></tr>
|
|
157
|
+
<tr><td><strong>Amazon Macie</strong></td><td>Discover PII in S3 buckets</td><td>Files in S3</td></tr>
|
|
158
|
+
<tr><td><strong>Bedrock Guardrails</strong></td><td>Block/anonymize PII in FM I/O</td><td>FM prompts/responses</td></tr>
|
|
159
|
+
<tr><td><strong>AWS Glue DataBrew</strong></td><td>PII detection in data pipelines</td><td>Structured data</td></tr>
|
|
160
|
+
</tbody>
|
|
161
|
+
</table>
|
|
162
|
+
|
|
163
|
+
<h3 id="pii-types"><strong>5.2. Common PII Types for Exam</strong></h3>
|
|
164
|
+
|
|
165
|
+
<table>
|
|
166
|
+
<thead><tr><th>PII Type</th><th>Examples</th></tr></thead>
|
|
167
|
+
<tbody>
|
|
168
|
+
<tr><td><strong>Direct identifiers</strong></td><td>Name, SSN, email, phone, passport number</td></tr>
|
|
169
|
+
<tr><td><strong>Financial</strong></td><td>Credit card number, bank account, tax ID</td></tr>
|
|
170
|
+
<tr><td><strong>Health</strong></td><td>Medical record number, health conditions (PHI)</td></tr>
|
|
171
|
+
<tr><td><strong>Location</strong></td><td>Home address, GPS coordinates</td></tr>
|
|
172
|
+
<tr><td><strong>Digital</strong></td><td>IP address, device ID, login credentials</td></tr>
|
|
173
|
+
</tbody>
|
|
174
|
+
</table>
|
|
175
|
+
|
|
176
|
+
<h2 id="bedrock-security"><strong>6. Amazon Bedrock Security</strong></h2>
|
|
177
|
+
|
|
178
|
+
<h3 id="bedrock-data"><strong>6.1. Data Privacy in Bedrock</strong></h3>
|
|
179
|
+
|
|
180
|
+
<ul>
|
|
181
|
+
<li><strong>Data isolation</strong>: Your data is NOT used to train base FMs</li>
|
|
182
|
+
<li><strong>Data stays in region</strong>: Processed in the AWS region you choose</li>
|
|
183
|
+
<li><strong>Custom models</strong>: Fine-tuned models are private to your account</li>
|
|
184
|
+
<li><strong>No data sharing</strong>: Your prompts/responses are not shared with model providers</li>
|
|
185
|
+
<li><strong>Encryption</strong>: All data encrypted at rest and in transit</li>
|
|
186
|
+
</ul>
|
|
187
|
+
|
|
188
|
+
<h3 id="bedrock-logging"><strong>6.2. Monitoring & Logging</strong></h3>
|
|
189
|
+
|
|
190
|
+
<table>
|
|
191
|
+
<thead><tr><th>Service</th><th>What it logs</th></tr></thead>
|
|
192
|
+
<tbody>
|
|
193
|
+
<tr><td><strong>AWS CloudTrail</strong></td><td>API calls (who invoked which model, when)</td></tr>
|
|
194
|
+
<tr><td><strong>Amazon CloudWatch</strong></td><td>Model invocation metrics (latency, errors, tokens)</td></tr>
|
|
195
|
+
<tr><td><strong>Bedrock Model Invocation Logging</strong></td><td>Full prompts and responses (to S3 or CloudWatch)</td></tr>
|
|
196
|
+
</tbody>
|
|
197
|
+
</table>
|
|
198
|
+
|
|
199
|
+
<blockquote>
|
|
200
|
+
<p><strong>Exam tip:</strong> "How to audit which users are calling Bedrock models?" → <strong>CloudTrail</strong>. "How to log the actual prompts and responses?" → <strong>Bedrock Model Invocation Logging</strong>.</p>
|
|
201
|
+
</blockquote>
|
|
202
|
+
|
|
203
|
+
<h2 id="compliance"><strong>7. Compliance & Governance</strong></h2>
|
|
204
|
+
|
|
205
|
+
<h3 id="compliance-programs"><strong>7.1. AWS Compliance Programs</strong></h3>
|
|
206
|
+
|
|
207
|
+
<table>
|
|
208
|
+
<thead><tr><th>Program</th><th>What</th><th>Relevant AI Services</th></tr></thead>
|
|
209
|
+
<tbody>
|
|
210
|
+
<tr><td><strong>SOC 1/2/3</strong></td><td>Security controls audit</td><td>Bedrock, SageMaker</td></tr>
|
|
211
|
+
<tr><td><strong>HIPAA</strong></td><td>Healthcare data protection</td><td>SageMaker, Comprehend Medical</td></tr>
|
|
212
|
+
<tr><td><strong>GDPR</strong></td><td>EU data privacy</td><td>All AWS services (data residency)</td></tr>
|
|
213
|
+
<tr><td><strong>PCI-DSS</strong></td><td>Payment card data security</td><td>SageMaker (with controls)</td></tr>
|
|
214
|
+
<tr><td><strong>FedRAMP</strong></td><td>US government cloud security</td><td>GovCloud regions</td></tr>
|
|
215
|
+
<tr><td><strong>ISO 27001</strong></td><td>Information security management</td><td>Bedrock, SageMaker</td></tr>
|
|
216
|
+
</tbody>
|
|
217
|
+
</table>
|
|
218
|
+
|
|
219
|
+
<h3 id="shared-responsibility"><strong>7.2. Shared Responsibility Model for AI</strong></h3>
|
|
220
|
+
|
|
221
|
+
<pre><code class="language-text">CUSTOMER responsibility ("Security IN the cloud"):
|
|
222
|
+
├── Training data quality and bias
|
|
223
|
+
├── Model selection and evaluation
|
|
224
|
+
├── Prompt design and guardrails configuration
|
|
225
|
+
├── IAM permissions and access control
|
|
226
|
+
├── PII handling and data classification
|
|
227
|
+
├── Application-level security
|
|
228
|
+
└── Compliance with industry regulations
|
|
229
|
+
|
|
230
|
+
AWS responsibility ("Security OF the cloud"):
|
|
231
|
+
├── Physical infrastructure security
|
|
232
|
+
├── Network and hardware security
|
|
233
|
+
├── Base FM provider management
|
|
234
|
+
├── Service availability and reliability
|
|
235
|
+
├── Encryption implementation
|
|
236
|
+
└── Compliance certifications
|
|
237
|
+
</code></pre>
|
|
238
|
+
|
|
239
|
+
<h2 id="data-governance"><strong>8. Data Governance for AI</strong></h2>
|
|
240
|
+
|
|
241
|
+
<table>
|
|
242
|
+
<thead><tr><th>Practice</th><th>AWS Service</th></tr></thead>
|
|
243
|
+
<tbody>
|
|
244
|
+
<tr><td>Data cataloging</td><td>AWS Glue Data Catalog</td></tr>
|
|
245
|
+
<tr><td>Data classification</td><td>Amazon Macie</td></tr>
|
|
246
|
+
<tr><td>Access control</td><td>AWS Lake Formation</td></tr>
|
|
247
|
+
<tr><td>Data lineage</td><td>SageMaker ML Lineage Tracking</td></tr>
|
|
248
|
+
<tr><td>Data quality</td><td>SageMaker Data Wrangler, Glue DataBrew</td></tr>
|
|
249
|
+
</tbody>
|
|
250
|
+
</table>
|
|
251
|
+
|
|
252
|
+
<h2 id="practice-questions"><strong>9. Practice Questions</strong></h2>
|
|
253
|
+
|
|
254
|
+
<p><strong>Q1:</strong> A financial services company wants to use Amazon Bedrock but requires that API calls do NOT traverse the public internet. What should they configure?</p>
|
|
255
|
+
<ul>
|
|
256
|
+
<li>A) AWS Direct Connect</li>
|
|
257
|
+
<li>B) VPC endpoint (AWS PrivateLink) for Bedrock ✓</li>
|
|
258
|
+
<li>C) VPN connection</li>
|
|
259
|
+
<li>D) CloudFront distribution</li>
|
|
260
|
+
</ul>
|
|
261
|
+
<p><em>Explanation: A VPC interface endpoint (PrivateLink) for Amazon Bedrock allows private connectivity from within a VPC without traffic going through the internet.</em></p>
|
|
262
|
+
|
|
263
|
+
<p><strong>Q2:</strong> According to the AWS Shared Responsibility Model, who is responsible for ensuring training data does not contain bias?</p>
|
|
264
|
+
<ul>
|
|
265
|
+
<li>A) AWS</li>
|
|
266
|
+
<li>B) The foundation model provider</li>
|
|
267
|
+
<li>C) The customer ✓</li>
|
|
268
|
+
<li>D) Both AWS and the customer equally</li>
|
|
269
|
+
</ul>
|
|
270
|
+
<p><em>Explanation: Under the shared responsibility model, customers are responsible for "security IN the cloud" — this includes training data quality, bias detection, and ethical AI practices. AWS is responsible for infrastructure security.</em></p>
|
|
271
|
+
|
|
272
|
+
<p><strong>Q3:</strong> A company needs to discover which S3 buckets contain personally identifiable information (PII) before using the data for ML training. Which service should they use?</p>
|
|
273
|
+
<ul>
|
|
274
|
+
<li>A) Amazon Comprehend</li>
|
|
275
|
+
<li>B) Amazon Macie ✓</li>
|
|
276
|
+
<li>C) Amazon Inspector</li>
|
|
277
|
+
<li>D) AWS Config</li>
|
|
278
|
+
</ul>
|
|
279
|
+
<p><em>Explanation: Amazon Macie uses machine learning to automatically discover and classify sensitive data (including PII) stored in Amazon S3 buckets. Comprehend detects PII in text, but Macie is designed for S3-level discovery.</em></p>
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: 019c9619-lt01-d5-l12
|
|
3
|
+
title: 'Bài 12: Exam Strategy & Complete Cheat Sheet'
|
|
4
|
+
slug: bai-12-exam-strategy-cheat-sheet
|
|
5
|
+
description: >-
|
|
6
|
+
AWS AI Practitioner exam strategy. Time management.
|
|
7
|
+
Complete cheat sheet cho tất cả 5 domains.
|
|
8
|
+
Key services mapping. Common exam traps.
|
|
9
|
+
duration_minutes: 45
|
|
10
|
+
is_free: true
|
|
11
|
+
video_url: null
|
|
12
|
+
sort_order: 2
|
|
13
|
+
section_title: "Domain 5: Security, Compliance & Governance for AI (14%)"
|
|
14
|
+
course:
|
|
15
|
+
id: 019c9619-lt01-7001-c001-lt0100000001
|
|
16
|
+
title: 'Luyện thi AWS Certified AI Practitioner (AIF-C01)'
|
|
17
|
+
slug: luyen-thi-aws-ai-practitioner
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<h2 id="exam-overview"><strong>1. Exam Overview — AIF-C01</strong></h2>
|
|
21
|
+
|
|
22
|
+
<table>
|
|
23
|
+
<thead><tr><th>Detail</th><th>Value</th></tr></thead>
|
|
24
|
+
<tbody>
|
|
25
|
+
<tr><td><strong>Exam code</strong></td><td>AIF-C01</td></tr>
|
|
26
|
+
<tr><td><strong>Questions</strong></td><td>65 scored + 15 unscored = 80 total</td></tr>
|
|
27
|
+
<tr><td><strong>Duration</strong></td><td>90 minutes</td></tr>
|
|
28
|
+
<tr><td><strong>Passing score</strong></td><td>700 / 1000</td></tr>
|
|
29
|
+
<tr><td><strong>Cost</strong></td><td>$100 USD</td></tr>
|
|
30
|
+
<tr><td><strong>Format</strong></td><td>Multiple choice + Multiple response</td></tr>
|
|
31
|
+
<tr><td><strong>Delivery</strong></td><td>Pearson VUE (testing center or online proctored)</td></tr>
|
|
32
|
+
<tr><td><strong>Validity</strong></td><td>3 years</td></tr>
|
|
33
|
+
</tbody>
|
|
34
|
+
</table>
|
|
35
|
+
|
|
36
|
+
<h2 id="domains"><strong>2. Domain Weights</strong></h2>
|
|
37
|
+
|
|
38
|
+
<pre><code class="language-text">Domain 1: Fundamentals of AI and ML ████████████ 20% (~13 questions)
|
|
39
|
+
Domain 2: Fundamentals of Generative AI █████████████████ 24% (~16 questions)
|
|
40
|
+
Domain 3: Applications of Foundation Models ████████████████████ 28% (~18 questions)
|
|
41
|
+
Domain 4: Guidelines for Responsible AI █████████ 14% (~9 questions)
|
|
42
|
+
Domain 5: Security, Compliance & Governance █████████ 14% (~9 questions)
|
|
43
|
+
</code></pre>
|
|
44
|
+
|
|
45
|
+
<blockquote>
|
|
46
|
+
<p><strong>Strategy:</strong> Domain 3 (28%) là phần lớn nhất — tập trung nhiều nhất vào Bedrock, RAG, Prompt Engineering, Fine-tuning. Domain 1+2 (44%) là foundation — hiểu concepts là đủ.</p>
|
|
47
|
+
</blockquote>
|
|
48
|
+
|
|
49
|
+
<h2 id="time-management"><strong>3. Time Management Strategy</strong></h2>
|
|
50
|
+
|
|
51
|
+
<pre><code class="language-text">80 questions / 90 minutes = ~67 seconds per question
|
|
52
|
+
|
|
53
|
+
Strategy:
|
|
54
|
+
┌─────────────────────────────────────────────┐
|
|
55
|
+
│ Pass 1 (0-60 min): Answer easy questions │
|
|
56
|
+
│ → Skip difficult ones (flag for review) │
|
|
57
|
+
│ → Target: 60+ questions answered │
|
|
58
|
+
├─────────────────────────────────────────────┤
|
|
59
|
+
│ Pass 2 (60-85 min): Review flagged questions│
|
|
60
|
+
│ → Eliminate wrong answers first │
|
|
61
|
+
│ → Use process of elimination │
|
|
62
|
+
├─────────────────────────────────────────────┤
|
|
63
|
+
│ Pass 3 (85-90 min): Final review │
|
|
64
|
+
│ → Never leave questions blank │
|
|
65
|
+
│ → No penalty for guessing │
|
|
66
|
+
└─────────────────────────────────────────────┘
|
|
67
|
+
</code></pre>
|
|
68
|
+
|
|
69
|
+
<h2 id="cheatsheet-d1"><strong>4. Domain 1 Cheat Sheet — AI/ML Fundamentals</strong></h2>
|
|
70
|
+
|
|
71
|
+
<table>
|
|
72
|
+
<thead><tr><th>Concept</th><th>Key Points</th></tr></thead>
|
|
73
|
+
<tbody>
|
|
74
|
+
<tr><td><strong>AI vs ML vs DL</strong></td><td>AI ⊃ ML ⊃ DL. DL uses neural networks.</td></tr>
|
|
75
|
+
<tr><td><strong>Supervised</strong></td><td>Labeled data → Classification (discrete) or Regression (continuous)</td></tr>
|
|
76
|
+
<tr><td><strong>Unsupervised</strong></td><td>Unlabeled data → Clustering, dimensionality reduction</td></tr>
|
|
77
|
+
<tr><td><strong>Reinforcement</strong></td><td>Agent + Environment + Rewards → Learn by trial and error</td></tr>
|
|
78
|
+
<tr><td><strong>Overfitting</strong></td><td>Good on training, bad on test → More data, regularization, dropout</td></tr>
|
|
79
|
+
<tr><td><strong>Underfitting</strong></td><td>Bad on both → More complex model, more features, longer training</td></tr>
|
|
80
|
+
<tr><td><strong>Precision</strong></td><td>Of predicted positives, how many are correct? (avoid false positives)</td></tr>
|
|
81
|
+
<tr><td><strong>Recall</strong></td><td>Of actual positives, how many did we find? (avoid false negatives)</td></tr>
|
|
82
|
+
<tr><td><strong>F1 Score</strong></td><td>Harmonic mean of Precision and Recall</td></tr>
|
|
83
|
+
<tr><td><strong>AUC-ROC</strong></td><td>Model's ability to distinguish classes (higher = better)</td></tr>
|
|
84
|
+
</tbody>
|
|
85
|
+
</table>
|
|
86
|
+
|
|
87
|
+
<h2 id="cheatsheet-d2"><strong>5. Domain 2 Cheat Sheet — Generative AI</strong></h2>
|
|
88
|
+
|
|
89
|
+
<table>
|
|
90
|
+
<thead><tr><th>Concept</th><th>Key Points</th></tr></thead>
|
|
91
|
+
<tbody>
|
|
92
|
+
<tr><td><strong>Foundation Models</strong></td><td>Large models trained on broad data, adaptable to many tasks</td></tr>
|
|
93
|
+
<tr><td><strong>Transformer</strong></td><td>Encoder-only (BERT, classify), Decoder-only (GPT, generate), Both (T5, translate)</td></tr>
|
|
94
|
+
<tr><td><strong>Tokens</strong></td><td>~4 chars = 1 token. Context window = max tokens. Pricing = per token.</td></tr>
|
|
95
|
+
<tr><td><strong>Temperature</strong></td><td>Low (0) = deterministic/factual. High (1) = creative/diverse.</td></tr>
|
|
96
|
+
<tr><td><strong>Top-p</strong></td><td>Nucleus sampling. 0.1 = focused. 0.9 = diverse.</td></tr>
|
|
97
|
+
<tr><td><strong>Hallucination</strong></td><td>Model generates false info. Mitigate with: RAG, guardrails, lower temp.</td></tr>
|
|
98
|
+
<tr><td><strong>Embeddings</strong></td><td>Text → vectors. Similar meaning = close vectors. Used for search, RAG.</td></tr>
|
|
99
|
+
<tr><td><strong>Diffusion models</strong></td><td>Image gen by denoising. Stable Diffusion, Titan Image Generator.</td></tr>
|
|
100
|
+
<tr><td><strong>Multi-modal</strong></td><td>Process multiple data types. Claude 3 (text+image), Titan MM Embeddings.</td></tr>
|
|
101
|
+
</tbody>
|
|
102
|
+
</table>
|
|
103
|
+
|
|
104
|
+
<h2 id="cheatsheet-d3"><strong>6. Domain 3 Cheat Sheet — Applications</strong></h2>
|
|
105
|
+
|
|
106
|
+
<table>
|
|
107
|
+
<thead><tr><th>Concept</th><th>Key Points</th></tr></thead>
|
|
108
|
+
<tbody>
|
|
109
|
+
<tr><td><strong>Zero-shot</strong></td><td>No examples. Model uses its knowledge.</td></tr>
|
|
110
|
+
<tr><td><strong>Few-shot</strong></td><td>2-5 examples. Pattern following.</td></tr>
|
|
111
|
+
<tr><td><strong>Chain-of-Thought</strong></td><td>"Think step by step" → better reasoning/math.</td></tr>
|
|
112
|
+
<tr><td><strong>RAG</strong></td><td>Retrieve docs → augment prompt → generate. Reduces hallucination.</td></tr>
|
|
113
|
+
<tr><td><strong>Bedrock Knowledge Bases</strong></td><td>Managed RAG: S3 docs → auto chunk → embed → vector store → retrieve.</td></tr>
|
|
114
|
+
<tr><td><strong>Fine-tuning</strong></td><td>Further train FM with your data. Need 1000+ labeled examples. LoRA = cheaper.</td></tr>
|
|
115
|
+
<tr><td><strong>Bedrock Agents</strong></td><td>Multi-step tasks: plan → call APIs → return results. Uses action groups.</td></tr>
|
|
116
|
+
<tr><td><strong>Bedrock Guardrails</strong></td><td>Content filter, denied topics, PII filter, word filter, grounding check.</td></tr>
|
|
117
|
+
<tr><td><strong>PartyRock</strong></td><td>Free, no-code Bedrock playground. No AWS account needed.</td></tr>
|
|
118
|
+
<tr><td><strong>Amazon Q Developer</strong></td><td>AI code assistant (was CodeWhisperer). IDE integration.</td></tr>
|
|
119
|
+
<tr><td><strong>Amazon Q Business</strong></td><td>Enterprise Q&A on company data. Respects ACLs.</td></tr>
|
|
120
|
+
</tbody>
|
|
121
|
+
</table>
|
|
122
|
+
|
|
123
|
+
<h2 id="cheatsheet-d4"><strong>7. Domain 4 Cheat Sheet — Responsible AI</strong></h2>
|
|
124
|
+
|
|
125
|
+
<table>
|
|
126
|
+
<thead><tr><th>Concept</th><th>Key Points</th></tr></thead>
|
|
127
|
+
<tbody>
|
|
128
|
+
<tr><td><strong>Bias types</strong></td><td>Selection, sampling, measurement, label, algorithmic, confirmation.</td></tr>
|
|
129
|
+
<tr><td><strong>SageMaker Clarify</strong></td><td>Pre-training bias + post-training bias + SHAP explainability.</td></tr>
|
|
130
|
+
<tr><td><strong>Amazon A2I</strong></td><td>Human-in-the-loop. Trigger human review when confidence low.</td></tr>
|
|
131
|
+
<tr><td><strong>SHAP</strong></td><td>Feature importance per prediction. "Why was this denied?"</td></tr>
|
|
132
|
+
<tr><td><strong>AI Service Cards</strong></td><td>AWS public docs: intended use, limitations, fairness for AWS AI services.</td></tr>
|
|
133
|
+
<tr><td><strong>Model Cards</strong></td><td>SageMaker: document YOUR model's details, metrics, ethics.</td></tr>
|
|
134
|
+
<tr><td><strong>Toxicity detection</strong></td><td>Guardrails content filters + Amazon Comprehend toxicity.</td></tr>
|
|
135
|
+
</tbody>
|
|
136
|
+
</table>
|
|
137
|
+
|
|
138
|
+
<h2 id="cheatsheet-d5"><strong>8. Domain 5 Cheat Sheet — Security & Compliance</strong></h2>
|
|
139
|
+
|
|
140
|
+
<table>
|
|
141
|
+
<thead><tr><th>Concept</th><th>Key Points</th></tr></thead>
|
|
142
|
+
<tbody>
|
|
143
|
+
<tr><td><strong>IAM</strong></td><td>Least privilege. bedrock:InvokeModel + resource ARN = restrict models.</td></tr>
|
|
144
|
+
<tr><td><strong>Encryption at rest</strong></td><td>KMS keys for Bedrock, SageMaker, S3. Customer-managed for compliance.</td></tr>
|
|
145
|
+
<tr><td><strong>VPC endpoints</strong></td><td>PrivateLink = no internet. Bedrock + SageMaker support this.</td></tr>
|
|
146
|
+
<tr><td><strong>PII detection</strong></td><td>Comprehend (text), Macie (S3), Guardrails (FM I/O).</td></tr>
|
|
147
|
+
<tr><td><strong>CloudTrail</strong></td><td>Who called what API when. Audit trail.</td></tr>
|
|
148
|
+
<tr><td><strong>Model Invocation Logging</strong></td><td>Log actual prompts & responses (to S3/CloudWatch).</td></tr>
|
|
149
|
+
<tr><td><strong>Bedrock data privacy</strong></td><td>Your data NOT used to train base FMs. Stays in region. Encrypted.</td></tr>
|
|
150
|
+
<tr><td><strong>Shared Responsibility</strong></td><td>Customer: data, bias, IAM, compliance. AWS: infra, service security.</td></tr>
|
|
151
|
+
</tbody>
|
|
152
|
+
</table>
|
|
153
|
+
|
|
154
|
+
<h2 id="service-mapping"><strong>9. "Which AWS Service?" Quick Reference</strong></h2>
|
|
155
|
+
|
|
156
|
+
<table>
|
|
157
|
+
<thead><tr><th>If you need to...</th><th>Use this service</th></tr></thead>
|
|
158
|
+
<tbody>
|
|
159
|
+
<tr><td>Access multiple FMs via single API</td><td><strong>Amazon Bedrock</strong></td></tr>
|
|
160
|
+
<tr><td>Build RAG with company docs</td><td><strong>Bedrock Knowledge Bases</strong></td></tr>
|
|
161
|
+
<tr><td>Create AI that calls APIs</td><td><strong>Bedrock Agents</strong></td></tr>
|
|
162
|
+
<tr><td>Block harmful/PII content</td><td><strong>Bedrock Guardrails</strong></td></tr>
|
|
163
|
+
<tr><td>Fine-tune FM</td><td><strong>Bedrock Custom Models</strong> or <strong>SageMaker</strong></td></tr>
|
|
164
|
+
<tr><td>Train custom ML model</td><td><strong>Amazon SageMaker</strong></td></tr>
|
|
165
|
+
<tr><td>Auto-ML (no code)</td><td><strong>SageMaker Canvas</strong> or <strong>SageMaker Autopilot</strong></td></tr>
|
|
166
|
+
<tr><td>Detect bias in model</td><td><strong>SageMaker Clarify</strong></td></tr>
|
|
167
|
+
<tr><td>Human review for AI predictions</td><td><strong>Amazon A2I</strong></td></tr>
|
|
168
|
+
<tr><td>Extract text from documents</td><td><strong>Amazon Textract</strong></td></tr>
|
|
169
|
+
<tr><td>Analyze images/video</td><td><strong>Amazon Rekognition</strong></td></tr>
|
|
170
|
+
<tr><td>Translate text</td><td><strong>Amazon Translate</strong></td></tr>
|
|
171
|
+
<tr><td>Speech-to-text</td><td><strong>Amazon Transcribe</strong></td></tr>
|
|
172
|
+
<tr><td>Text-to-speech</td><td><strong>Amazon Polly</strong></td></tr>
|
|
173
|
+
<tr><td>NLP (sentiment, entities)</td><td><strong>Amazon Comprehend</strong></td></tr>
|
|
174
|
+
<tr><td>Build chatbot</td><td><strong>Amazon Lex</strong></td></tr>
|
|
175
|
+
<tr><td>Enterprise search</td><td><strong>Amazon Kendra</strong></td></tr>
|
|
176
|
+
<tr><td>Recommendations</td><td><strong>Amazon Personalize</strong></td></tr>
|
|
177
|
+
<tr><td>Time-series forecasting</td><td><strong>Amazon Forecast</strong></td></tr>
|
|
178
|
+
<tr><td>Fraud detection</td><td><strong>Amazon Fraud Detector</strong></td></tr>
|
|
179
|
+
<tr><td>Code assistant</td><td><strong>Amazon Q Developer</strong></td></tr>
|
|
180
|
+
<tr><td>Enterprise Q&A on company data</td><td><strong>Amazon Q Business</strong></td></tr>
|
|
181
|
+
<tr><td>No-code GenAI playground</td><td><strong>PartyRock</strong></td></tr>
|
|
182
|
+
<tr><td>Find PII in S3</td><td><strong>Amazon Macie</strong></td></tr>
|
|
183
|
+
</tbody>
|
|
184
|
+
</table>
|
|
185
|
+
|
|
186
|
+
<h2 id="common-traps"><strong>10. Common Exam Traps</strong></h2>
|
|
187
|
+
|
|
188
|
+
<h3 id="trap-list"><strong>Watch out for these:</strong></h3>
|
|
189
|
+
|
|
190
|
+
<ol>
|
|
191
|
+
<li><strong>"MOST suitable" / "BEST"</strong>: Multiple answers may work — choose the one that best fits ALL constraints.</li>
|
|
192
|
+
<li><strong>RAG vs Fine-tuning</strong>: If question mentions "latest data" or "company docs" → RAG. If "specific style" or "writing pattern" → Fine-tuning.</li>
|
|
193
|
+
<li><strong>System prompt vs Guardrails</strong>: If question says "guarantee" or "enforce" → Guardrails (system prompts can be bypassed).</li>
|
|
194
|
+
<li><strong>Supervised vs Unsupervised</strong>: "Labels" = supervised. "No labels" = unsupervised. "Reward" = reinforcement.</li>
|
|
195
|
+
<li><strong>SageMaker vs Bedrock</strong>: Custom ML model from scratch → SageMaker. Use/customize existing FM → Bedrock.</li>
|
|
196
|
+
<li><strong>Comprehend vs Macie</strong>: PII in text (runtime) → Comprehend. PII in S3 files (discovery) → Macie.</li>
|
|
197
|
+
<li><strong>Clarify vs Guardrails</strong>: Bias detection → Clarify. Content safety → Guardrails.</li>
|
|
198
|
+
<li><strong>Temperature</strong>: "Consistent answers" → Low temperature. "Creative responses" → High temperature.</li>
|
|
199
|
+
<li><strong>"Minimum effort" / "least overhead"</strong>: Usually means managed service (Bedrock > SageMaker).</li>
|
|
200
|
+
<li><strong>CloudTrail vs CloudWatch vs Invocation Logging</strong>: API audit → CloudTrail. Metrics → CloudWatch. Prompt/response logs → Invocation Logging.</li>
|
|
201
|
+
</ol>
|
|
202
|
+
|
|
203
|
+
<h2 id="exam-day"><strong>11. Exam Day Tips</strong></h2>
|
|
204
|
+
|
|
205
|
+
<ul>
|
|
206
|
+
<li><strong>Read the ENTIRE question</strong> before looking at answers</li>
|
|
207
|
+
<li><strong>Identify keywords</strong>: "MOST", "LEAST", "BEST", "FIRST", "guarantee"</li>
|
|
208
|
+
<li><strong>Eliminate wrong answers</strong> first — usually 2 are obviously wrong</li>
|
|
209
|
+
<li><strong>Don't overthink</strong> — if you know the answer, select it and move on</li>
|
|
210
|
+
<li><strong>Flag and skip</strong> hard questions — come back in Pass 2</li>
|
|
211
|
+
<li><strong>Never leave blank</strong> — no penalty for guessing</li>
|
|
212
|
+
<li><strong>15 unscored questions</strong> — you don't know which ones, so answer all seriously</li>
|
|
213
|
+
<li><strong>Manage time</strong> — 67 seconds per question average</li>
|
|
214
|
+
</ul>
|
|
215
|
+
|
|
216
|
+
<h2 id="next-steps"><strong>12. Next Steps</strong></h2>
|
|
217
|
+
|
|
218
|
+
<ol>
|
|
219
|
+
<li><strong>Review all 11 lessons in this series</strong></li>
|
|
220
|
+
<li><strong>Take the mock exam</strong> in the "Thi thử" section</li>
|
|
221
|
+
<li><strong>AWS Skill Builder</strong>: Free "Exam Prep" course for AIF-C01</li>
|
|
222
|
+
<li><strong>AWS PartnerCast</strong>: Additional exam prep resources</li>
|
|
223
|
+
<li><strong>Practice with Bedrock</strong>: Use AWS Free Tier / PartyRock</li>
|
|
224
|
+
<li><strong>Schedule the exam</strong> at <a href="https://aws.amazon.com/certification/">aws.amazon.com/certification</a></li>
|
|
225
|
+
</ol>
|
|
226
|
+
|
|
227
|
+
<blockquote>
|
|
228
|
+
<p><strong>Remember:</strong> Bạn không cần hands-on experience — đây là Practitioner level exam. Tập trung vào <strong>concepts, use cases, và chọn đúng AWS service</strong>.</p>
|
|
229
|
+
</blockquote>
|