Amazon AWS Certified Solutions Architect - Associate SAA-C03 Practice Test 13
Question 120
An auditor needs network traffic evidence for an EC2 interface rather than IAM API audit events. What logging source fits?
- Use Amazon Macie sensitive-data discovery for the targeted S3 buckets.
- Enable AWS Config recording and relevant managed or custom evaluation rules.
- Enable VPC Flow Logs for the relevant network interfaces or subnets.
- Enable Amazon Inspector for supported workload vulnerability scanning.
Explanation
Correct Answer
C:Flow Logs describe eligible IP traffic metadata and accept/reject status. Compare a test connection's source, destination and action in flow records.
Incorrect Answers
A:Macie analyzes S3 data for sensitive information classifications. Enable VPC Flow Logs for the relevant network interfaces or subnets. Compare a test connection's source, destination and action in flow records.
B:Config tracks supported resource configuration history and rule evaluations. Enable VPC Flow Logs for the relevant network interfaces or subnets. Compare a test connection's source, destination and action in flow records.
D:Inspector identifies software vulnerabilities and exposure on supported resources. Enable VPC Flow Logs for the relevant network interfaces or subnets. Compare a test connection's source, destination and action in flow records.
Question 121
A production database password must rotate automatically without being committed to code. Which managed store fits?
- Use AWS Systems Manager Parameter Store or AppConfig as appropriate for configuration.
- Store the database secret in AWS Secrets Manager with supported rotation.
- Retrieve the secret at runtime through an instance IAM role and Secrets Manager.
- Grant Secrets Manager GetSecretValue to the runtime role only and restrict the build role.
Explanation
Correct Answer
B:Secrets Manager supports versioned secrets and rotation integrations. Trigger a controlled rotation and verify application retrieval.
Incorrect Answers
A:Parameter and application configuration management avoids hardcoded values and supports controlled rollout. Store the database secret in AWS Secrets Manager with supported rotation. Trigger a controlled rotation and verify application retrieval.
C:Temporary workload credentials and secret retrieval avoid embedding passwords in instance metadata. Store the database secret in AWS Secrets Manager with supported rotation. Trigger a controlled rotation and verify application retrieval.
D:Separation of duties prevents CI from reading production application secrets. Store the database secret in AWS Secrets Manager with supported rotation. Trigger a controlled rotation and verify application retrieval.
Question 122
A web app stores nonsecret feature flags that change by environment and need cheap versioned configuration. Which service fits?
- Refresh secret retrieval or cache invalidation when secret versions rotate.
- Use AWS Systems Manager Parameter Store or AppConfig as appropriate for configuration.
- Grant Secrets Manager GetSecretValue to the runtime role only and restrict the build role.
- Store the database secret in AWS Secrets Manager with supported rotation.
Explanation
Correct Answer
B:Parameter and application configuration management avoids hardcoded values and supports controlled rollout. Change a test flag and check application adoption.
Incorrect Answers
A:Applications must adopt updated secret values instead of indefinitely caching stale credentials. Use AWS Systems Manager Parameter Store or AppConfig as appropriate for configuration. Change a test flag and check application adoption.
C:Separation of duties prevents CI from reading production application secrets. Use AWS Systems Manager Parameter Store or AppConfig as appropriate for configuration. Change a test flag and check application adoption.
D:Secrets Manager supports versioned secrets and rotation integrations. Use AWS Systems Manager Parameter Store or AppConfig as appropriate for configuration. Change a test flag and check application adoption.
Question 123
An EC2 instance has a password in its user-data script visible to administrators. Which design prevents that secret exposure?
- Grant Secrets Manager GetSecretValue to the runtime role only and restrict the build role.
- Refresh secret retrieval or cache invalidation when secret versions rotate.
- Retrieve the secret at runtime through an instance IAM role and Secrets Manager.
- Store the database secret in AWS Secrets Manager with supported rotation.
Explanation
Correct Answer
C:Temporary workload credentials and secret retrieval avoid embedding passwords in instance metadata. Inspect user data for removed secret values.
Incorrect Answers
A:Separation of duties prevents CI from reading production application secrets. Retrieve the secret at runtime through an instance IAM role and Secrets Manager. Inspect user data for removed secret values.
B:Applications must adopt updated secret values instead of indefinitely caching stale credentials. Retrieve the secret at runtime through an instance IAM role and Secrets Manager. Inspect user data for removed secret values.
D:Secrets Manager supports versioned secrets and rotation integrations. Retrieve the secret at runtime through an instance IAM role and Secrets Manager. Inspect user data for removed secret values.
Question 124
A service reads a rotated secret only at boot and fails authentication after the password changes. What should be improved?
- Use AWS Systems Manager Parameter Store or AppConfig as appropriate for configuration.
- Refresh secret retrieval or cache invalidation when secret versions rotate.
- Store the database secret in AWS Secrets Manager with supported rotation.
- Retrieve the secret at runtime through an instance IAM role and Secrets Manager.
Explanation
Correct Answer
B:Applications must adopt updated secret values instead of indefinitely caching stale credentials. Rotate a test secret and verify new connections recover.
Incorrect Answers
A:Parameter and application configuration management avoids hardcoded values and supports controlled rollout. Refresh secret retrieval or cache invalidation when secret versions rotate. Rotate a test secret and verify new connections recover.
C:Secrets Manager supports versioned secrets and rotation integrations. Refresh secret retrieval or cache invalidation when secret versions rotate. Rotate a test secret and verify new connections recover.
D:Temporary workload credentials and secret retrieval avoid embedding passwords in instance metadata. Refresh secret retrieval or cache invalidation when secret versions rotate. Rotate a test secret and verify new connections recover.
Question 125
A batch job requires an encryption key but engineers plan to put a plaintext copy in a container image. What is safer?
- Use managed certificate/secret renewal processes with audit and least privilege.
- Assign task or pod roles with API-scoped permissions and short-lived credentials.
- Use KMS encryption operations with protected key material and a scoped execution role.
- Grant Secrets Manager GetSecretValue to the runtime role only and restrict the build role.
Explanation
Correct Answer
C:KMS helps control cryptographic key use without distributing raw keys into images. Inspect the container layers and an authorized decrypt operation.
Incorrect Answers
A:Credential material and lifecycle should be separated from source code and automated where supported. Use KMS encryption operations with protected key material and a scoped execution role. Inspect the container layers and an authorized decrypt operation.
B:Workload roles limit blast radius and remove shared static credentials. Use KMS encryption operations with protected key material and a scoped execution role. Inspect the container layers and an authorized decrypt operation.
D:Separation of duties prevents CI from reading production application secrets. Use KMS encryption operations with protected key material and a scoped execution role. Inspect the container layers and an authorized decrypt operation.
Question 126
A developer grants all application containers broad IAM user keys to call one AWS API. Which alternative is more secure?
- Retrieve the secret at runtime through an instance IAM role and Secrets Manager.
- Refresh secret retrieval or cache invalidation when secret versions rotate.
- Use KMS encryption operations with protected key material and a scoped execution role.
- Assign task or pod roles with API-scoped permissions and short-lived credentials.
Explanation
Correct Answer
D:Workload roles limit blast radius and remove shared static credentials. Confirm unrelated workloads cannot call the API.
Incorrect Answers
A:Temporary workload credentials and secret retrieval avoid embedding passwords in instance metadata. Assign task or pod roles with API-scoped permissions and short-lived credentials. Confirm unrelated workloads cannot call the API.
B:Applications must adopt updated secret values instead of indefinitely caching stale credentials. Assign task or pod roles with API-scoped permissions and short-lived credentials. Confirm unrelated workloads cannot call the API.
C:KMS helps control cryptographic key use without distributing raw keys into images. Assign task or pod roles with API-scoped permissions and short-lived credentials. Confirm unrelated workloads cannot call the API.
Question 127
An external database certificate expires periodically, and operators store it beside plaintext credentials in source control. What lifecycle change fits?
- Use KMS encryption operations with protected key material and a scoped execution role.
- Use managed certificate/secret renewal processes with audit and least privilege.
- Store the database secret in AWS Secrets Manager with supported rotation.
- Refresh secret retrieval or cache invalidation when secret versions rotate.
Explanation
Correct Answer
B:Credential material and lifecycle should be separated from source code and automated where supported. Demonstrate renewal in a nonproduction endpoint.
Incorrect Answers
A:KMS helps control cryptographic key use without distributing raw keys into images. Use managed certificate/secret renewal processes with audit and least privilege. Demonstrate renewal in a nonproduction endpoint.
C:Secrets Manager supports versioned secrets and rotation integrations. Use managed certificate/secret renewal processes with audit and least privilege. Demonstrate renewal in a nonproduction endpoint.
D:Applications must adopt updated secret values instead of indefinitely caching stale credentials. Use managed certificate/secret renewal processes with audit and least privilege. Demonstrate renewal in a nonproduction endpoint.
Question 128
A team wants only the database runtime to retrieve a secret, not the build pipeline. What IAM boundary applies?
- Use AWS Systems Manager Parameter Store or AppConfig as appropriate for configuration.
- Retrieve the secret at runtime through an instance IAM role and Secrets Manager.
- Refresh secret retrieval or cache invalidation when secret versions rotate.
- Grant Secrets Manager GetSecretValue to the runtime role only and restrict the build role.
Explanation
Correct Answer
D:Separation of duties prevents CI from reading production application secrets. Attempt access as both identities and inspect CloudTrail.
Incorrect Answers
A:Parameter and application configuration management avoids hardcoded values and supports controlled rollout. Grant Secrets Manager GetSecretValue to the runtime role only and restrict the build role. Attempt access as both identities and inspect CloudTrail.
B:Temporary workload credentials and secret retrieval avoid embedding passwords in instance metadata. Grant Secrets Manager GetSecretValue to the runtime role only and restrict the build role. Attempt access as both identities and inspect CloudTrail.
C:Applications must adopt updated secret values instead of indefinitely caching stale credentials. Separation of duties prevents CI from reading production application secrets.
Question 129
A manufacturing network requires dedicated private transport for large recurring replication traffic to AWS. Its on-premises DNS servers must also resolve records in an AWS private hosted zone over the hybrid network. Which TWO AWS capabilities meet these requirements? (Select TWO.)
- Provision AWS Direct Connect with approved VIF and routing configuration, and test resilience separately.
- Use a public hosted zone and publish private application IP addresses to every internet resolver.
- Replace the dedicated connection with one unsecured HTTP tunnel and assume it has the same predictable capacity.
- Deploy Route 53 Resolver inbound endpoints and forward AWS private-zone queries from corporate resolvers to them.
- Create only outbound Resolver endpoints and expect them to accept on-premises queries as an inbound listener.
Explanation
Correct Answers
A:Direct Connect provides a dedicated connectivity path for supported hybrid traffic, subject to routing and redundancy design.
D:Inbound Resolver endpoints accept queries from on-premises DNS over the authorized hybrid link for VPC-associated private DNS.
Incorrect Answers
B:Publishing internal records in public DNS violates the requirement for private hybrid name resolution.
C:An HTTP tunnel is neither a Direct Connect private transport nor an equivalent architecture for sustained high-bandwidth replication.
E:Outbound endpoints carry queries from AWS toward external DNS; they do not provide the on-premises-to-AWS private-zone inbound path.
Question 130
A branch needs an encrypted AWS tunnel over its existing internet ISP with rapid setup. Which connectivity fits?
- Use AWS Direct Connect with appropriate virtual interfaces and routing.
- Layer an appropriate VPN over the Direct Connect path where supported.
- Use AWS Transit Gateway attachments with approved route-table associations and propagation.
- Configure AWS Site-to-Site VPN with supported tunnel redundancy.
Explanation
Correct Answer
D:Site-to-Site VPN encrypts network traffic across an IPsec connection over the internet. Verify both tunnels and required routes.
Incorrect Answers
A:Direct Connect provides dedicated network connectivity, although encryption may need another layer. Configure AWS Site-to-Site VPN with supported tunnel redundancy. Verify both tunnels and required routes.
B:Dedicated connectivity and transport encryption are separate design concerns. Configure AWS Site-to-Site VPN with supported tunnel redundancy. Verify both tunnels and required routes.
C:Transit Gateway scales hub-and-spoke routing across VPC and VPN connections. Configure AWS Site-to-Site VPN with supported tunnel redundancy. Verify both tunnels and required routes.