Curated

Infrastructure Security (3.1–3.3)

0 votes

Questions53

  1. Question 1

    Infrastructure Security

    A public application behind CloudFront receives requests containing SQL injection attempts in query parameters. Which edge security strategy BEST filters these requests before they reach the application?

    Show the answer

    Correct answerC. Associate an AWS WAF web ACL containing SQL injection rules.

    AWhy not this: Shield Advanced protects availability against DDoS attacks rather than filtering general SQL injection attempts.

    BWhy not this: An origin request policy controls forwarding to the origin, not malicious-content inspection.

    CWhy this is right: AWS WAF SQL injection rules can inspect query parameters and block matching requests at CloudFront.

    DWhy not this: Response security headers influence browser behavior after a response; they do not inspect incoming query parameters.

    AWS WAF can inspect query parameters and block requests that match SQL injection rules. Shield Advanced addresses DDoS protection, not general filtering of SQL injection attempts.

    Open this question
  2. Question 2

    Infrastructure Security

    A CloudFront application faces credential stuffing from rotating residential IP addresses, while legitimate users often share corporate public IP addresses. Which strategy BEST detects compromised-credential use without relying primarily on per-IP request limits?

    Show the answer

    Correct answerB. Use AWS WAF Fraud Control account takeover prevention on login requests.

    AWhy not this: Country restrictions cannot distinguish malicious login attempts from legitimate users in the same locations.

    BWhy this is right: Account takeover prevention evaluates login attempts and can detect credentials known to be compromised.

    CWhy not this: Per-IP limits can penalize shared corporate addresses while missing attempts distributed across many residential addresses.

    DWhy not this: Application layer DDoS mitigation addresses availability attacks rather than compromised-credential use.

    AWS WAF Fraud Control account takeover prevention inspects login attempts and can identify use of compromised credentials. Per-IP rate limits are a poor primary control when attackers rotate addresses and legitimate users share addresses.

    Open this question
  3. Question 3

    Infrastructure Security

    A multiplayer service uses UDP endpoints in two AWS Regions and requires static public entry IP addresses with health-based routing between Regions. Anticipating volumetric DDoS attacks, which design meets these requirements and adds enhanced DDoS protection at the entry point?

    Show the answer

    Correct answerA. Use AWS Global Accelerator with regional endpoints and enable Shield Advanced protection for the accelerator.

    AWhy this is right: Global Accelerator supports UDP and static global IP addresses; Shield Advanced adds enhanced DDoS protection.

    BWhy not this: Application Load Balancers do not accept UDP application traffic, and AWS WAF inspects HTTP requests.

    CWhy not this: CloudFront handles HTTP-based delivery, not arbitrary UDP application traffic.

    DWhy not this: DNS routing does not provide static global entry IP addresses, and hosted-zone protection protects DNS availability.

    AWS Global Accelerator supports UDP, static anycast entry IP addresses, and health-based routing to regional endpoints; Shield Advanced can protect the accelerator. Route 53 routing provides DNS answers rather than a fixed set of global entry IP addresses.

    Open this question
  4. Question 4

    Infrastructure Security

    A CloudFront distribution must return a centrally defined Strict-Transport-Security value on HTTPS responses, including cache hits, even when an origin returns a different value. Which configuration BEST meets this requirement without changing the origins?

    Show the answer

    Correct answerB. Attach a response headers policy with HSTS configured and origin override enabled.

    AWhy not this: An origin request policy controls requests sent to origins, not security headers returned to viewers.

    BWhy this is right: Origin override makes the configured HSTS value take precedence on viewer responses, including cache hits.

    CWhy not this: With origin override disabled, an existing origin HSTS value takes precedence over the policy value.

    DWhy not this: A cache policy controls cache keys and forwarding behavior; it does not set the required viewer response header.

    A CloudFront response headers policy applies to viewer responses, including cache hits. Enabling origin override makes CloudFront use the policy's HSTS value instead of a conflicting origin value; disabling it preserves the origin's value when present.

    Open this question
  5. Question 5

    Infrastructure Security

    A container build needs a private-package credential and compiler tools, but neither may be recoverable from any layer of the published runtime image. Which build practices meet these requirements? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Use a build-time secret mount without copying its contents into image layers.C. Use a multi-stage build that copies only application artifacts into a clean runtime stage.

    AWhy not this: Build arguments are not a secure secret channel and can expose values through build metadata or history.

    BWhy this is right: A secret mount supplies a temporary build credential without persisting it, provided the build does not copy or expose it.

    CWhy this is right: Copying only application artifacts into a clean final stage excludes compiler layers from the runtime image.

    DWhy not this: Deleting a credential in a later layer leaves its contents recoverable from the earlier layer.

    EWhy not this: Uninstalling tools in a later layer does not remove their contents from preceding image layers.

    A multi-stage build keeps compiler layers out of the published runtime image, while a build-time secret mount avoids embedding the credential. Deleting files or uninstalling tools in later layers does not remove their contents from earlier layers.

    Open this question
  6. Question 6

    Infrastructure Security

    A containerized application requires only its executable and runtime libraries, but its production image includes package managers and troubleshooting utilities. Which change MOST directly reduces the image's attack surface?

    Show the answer

    Correct answerD. Rebuild with a minimal base and only required runtime dependencies.

    AWhy not this: Runtime monitoring detects suspicious behavior rather than reducing the software included in the image.

    BWhy not this: Enhanced scanning finds vulnerabilities but does not remove unnecessary software from the image.

    CWhy not this: Least-privilege task permissions limit AWS API access but do not remove vulnerable image components.

    DWhy this is right: Including only the executable and required dependencies removes unnecessary attack surface.

    A minimal image removes unnecessary software and reduces the components that could contain exploitable vulnerabilities. Amazon ECR scanning identifies known vulnerabilities but does not remove unnecessary packages from the image.

    Open this question
  7. Question 7

    Infrastructure Security

    An Amazon ECS task running on EC2 must read objects from a specific S3 bucket, while the ECS agent must pull its image from private Amazon ECR. Where should the S3 read permission be assigned?

    Show the answer

    Correct answerC. The ECS task role

    AWhy not this: The task execution role supports operations such as image pulls, not the application code's S3 requests.

    BWhy not this: The container instance role supports the EC2 host and ECS agent rather than providing task-scoped application permissions.

    CWhy this is right: The task role supplies application credentials and can scope S3 access to the required bucket.

    DWhy not this: The service-linked role lets ECS manage AWS resources on your behalf rather than authorize application requests.

    The task role provides AWS permissions to application code running in an ECS task. The task execution role supports agent operations such as pulling images from Amazon ECR; it does not supply the application's S3 permissions.

    Open this question
  8. Question 8

    Infrastructure Security

    An EC2 Image Builder pipeline must distribute AMIs only after confirming that hardened settings survive a reboot and a required security agent starts in instances launched from the resulting image. Which design BEST meets these requirements without relying on production-instance remediation?

    Show the answer

    Correct answerA. Apply hardening during the build, then enforce the checks in the test stage before distribution.

    AWhy this is right: The test stage checks the resulting image before distribution and can fail the pipeline when required controls are absent.

    BWhy not this: Launch-time remediation does not ensure that the distributed AMI already contains working security controls.

    CWhy not this: Patch compliance does not establish that hardened settings persist or that the security agent starts from the resulting image.

    DWhy not this: Build-phase validation checks the build instance rather than startup behavior in an instance launched from the resulting AMI.

    Image Builder tests run against instances launched from the built image, allowing checks of persisted settings and agent startup before distribution. Build-phase validation checks the build instance, not whether the resulting AMI launches with those controls intact.

    Open this question
  9. Question 9

    Infrastructure Security

    An AWS Verified Access group policy permits only employees, while an endpoint policy permits contractors to a private application. Contractors authenticate successfully but are denied access; which change admits contractors only to this application while preserving employee-only access to the group's other applications?

    Show the answer

    Correct answerA. Move the endpoint to a separate group whose policy permits contractors.

    AWhy this is right: A separate group removes the conflicting employee-only restriction without broadening access to the original group's applications.

    BWhy not this: Network ACL rules do not change the outcome of Verified Access group policy evaluation.

    CWhy not this: The endpoint already permits contractors; its policy cannot override the group's employee-only restriction.

    DWhy not this: Security groups control network traffic and cannot override a Verified Access identity policy denial.

    Verified Access requires requests to satisfy both group and endpoint policies. A separate group can permit contractors for this endpoint without changing access to other applications; expanding the endpoint policy alone cannot overcome the existing group restriction.

    Open this question
  10. Question 10

    Infrastructure Security

    Which AWS service provides access to private applications based on user identity and device security posture without requiring a VPN?

    Show the answer

    Correct answerC. AWS Verified Access

    AWhy not this: Network Firewall inspects and filters VPC traffic rather than providing identity-aware access to private applications.

    BWhy not this: Direct Connect provides dedicated network connectivity rather than evaluating user identity and device security posture.

    CWhy this is right: Verified Access uses identity and device trust information to authorize access to private applications without a VPN.

    DWhy not this: Site-to-Site VPN establishes encrypted network connectivity rather than identity- and device-aware application access.

    AWS Verified Access evaluates identity and device context to authorize application access without a VPN. AWS Network Firewall filters network traffic but does not provide this identity-aware application access model.

    Open this question
  11. Question 11

    Infrastructure Security

    A company is setting up private IP Site-to-Site VPN over an AWS Direct Connect transit virtual interface. It assigned a private CIDR block to the transit gateway for the AWS tunnel endpoints and associated the Direct Connect gateway with the transit gateway. The customer gateway has no route to the AWS tunnel endpoint addresses, so the IPsec tunnels never come up. What should the network engineer do?

    Show the answer

    Correct answerA. Add the transit gateway's CIDR block to the allowed prefixes of the Direct Connect gateway association.

    AWhy this is right: Allowed prefixes on the association are what the Direct Connect gateway advertises over the transit virtual interface, including the tunnel endpoint CIDR.

    BWhy not this: A public virtual interface carries public-address VPN tunnels, which defeats the private tunnel endpoint requirement.

    CWhy not this: Acceleration routes tunnels through AWS Global Accelerator on public addresses; it does not make private tunnel endpoints reachable over Direct Connect.

    DWhy not this: VPC attachment route tables steer traffic inside AWS; they do not advertise prefixes to the customer gateway.

    For private IP VPN, the transit gateway's private CIDR block must be listed in the allowed prefixes of the Direct Connect gateway's transit gateway association, so it is advertised to the customer network over the transit virtual interface. A public virtual interface would put the tunnels on public addresses, and VPC attachment route tables do not advertise routes to on-premises networks.

    Open this question
  12. Question 12

    Infrastructure Security

    A branch office needs encrypted connectivity to a VPC this week using its existing internet connection and IPsec-capable router. Which solution best meets these requirements?

    Show the answer

    Correct answerD. AWS Site-to-Site VPN with a customer gateway

    AWhy not this: Client VPN connects individual client devices rather than using the branch router as a site-to-site gateway.

    BWhy not this: Verified Access controls access to applications rather than establishing router-to-VPC IPsec connectivity.

    CWhy not this: Direct Connect requires a dedicated connectivity arrangement and does not provide encryption by default.

    DWhy this is right: Site-to-Site VPN connects the branch network to AWS using IPsec over the existing internet connection.

    AWS Site-to-Site VPN establishes IPsec connectivity between the branch router and AWS over the existing internet connection. AWS Client VPN is designed for individual client connections rather than router-based connectivity for an entire branch.

    Open this question
  13. Question 13

    Infrastructure Security

    A company uses AWS Direct Connect with a transit virtual interface to reach a transit gateway. It requires encryption from its customer gateway to the transit gateway, with private IP addresses for tunnel endpoints; which design meets these requirements?

    Show the answer

    Correct answerA. Use a private-IP Site-to-Site VPN over Direct Connect.

    AWhy this is right: Private-IP VPN supplies IPsec encryption over Direct Connect with private tunnel endpoint addresses.

    BWhy not this: MACsec encrypts the Direct Connect link, not the complete customer-gateway-to-transit-gateway path.

    CWhy not this: A public-IP VPN uses public tunnel endpoint addresses, contrary to the stated requirement.

    DWhy not this: A transit virtual interface provides private connectivity but does not itself encrypt traffic.

    Private-IP AWS Site-to-Site VPN over Direct Connect provides IPsec encryption between the customer gateway and transit gateway using private tunnel endpoint addresses. MACsec protects the Layer 2 link to the Direct Connect location, not the entire path to the transit gateway.

    Open this question
  14. Question 14

    Infrastructure Security

    A subnet's inbound network ACL has rule 100 allowing all traffic from 10.0.0.0/8 and rule 200 denying TCP port 22 from 10.20.0.0/16. SSH from 10.20.1.10 still succeeds; which change blocks it while preserving the broader allow?

    Show the answer

    Correct answerA. Change the deny rule number to 90.

    AWhy this is right: Rule 90 denies the specified SSH traffic before rule 100 permits the broader address range.

    BWhy not this: SSH responses target the client's ephemeral port, not destination port 22.

    CWhy not this: The default deny rule cannot be modified and is evaluated only when no numbered rule matches.

    DWhy not this: Rule 100 would still match first, so the connection would remain allowed.

    Network ACLs evaluate rules in ascending numerical order and apply the first match. Moving the specific deny to rule 90 makes it precede the broad allow; moving it to rule 300 leaves the allow as the first match.

    Open this question
  15. Question 15

    Infrastructure Security

    After AWS Network Firewall is inserted, TCP connections fail despite permissive security groups and network ACLs. Traces show requests traversing one firewall endpoint and responses traversing another; what should the engineer change?

    Show the answer

    Correct answerC. Route each connection's traffic through the same firewall endpoint in both directions.

    AWhy not this: Security group permissions do not resolve traffic traversing different stateful firewall endpoints.

    BWhy not this: The network ACLs already permit traffic; additional ephemeral-port rules do not correct asymmetric routing.

    CWhy this is right: Symmetric routing lets the same firewall endpoint inspect both directions and track connection state.

    DWhy not this: Bypassing the firewall on the return path still prevents bidirectional stateful inspection.

    AWS Network Firewall stateful inspection requires symmetric routing through the same firewall endpoint. Bypassing inspection on the return path does not restore the bidirectional visibility required for stateful connection tracking.

    Open this question
  16. Question 16

    Infrastructure Security

    Which control supports allowing database connections by referencing the security group attached to application servers?

    Show the answer

    Correct answerC. A database security group

    AWhy not this: Route tables select traffic paths; they do not authorize connections by source security group.

    BWhy not this: Network ACL rules match IP address ranges, protocols, and ports, not source security groups.

    CWhy this is right: An inbound rule can reference the application servers' security group to permit their database connections.

    DWhy not this: Network Firewall rule groups do not use security group references as traffic sources.

    A database security group's inbound rule can reference the application servers' security group as its source. Network ACL rules use CIDR ranges rather than security group references.

    Open this question
  17. Question 17

    Infrastructure Security

    Which IAM resource delivers an IAM role to an EC2 instance so its applications can obtain temporary AWS credentials?

    Show the answer

    Correct answerC. An instance profile

    AWhy not this: A service-linked role lets a particular AWS service perform actions on your behalf.

    BWhy not this: A resource-based policy controls access to a resource; it does not deliver role credentials to EC2.

    CWhy this is right: An instance profile associates an IAM role with EC2 so applications can obtain temporary role credentials.

    DWhy not this: A permissions boundary limits a role's maximum permissions; it does not associate the role with an instance.

    An instance profile is the container used to associate an IAM role with an EC2 instance. A service-linked role is used by its linked AWS service, not as the application's instance role.

    Open this question
  18. Question 18

    Infrastructure Security

    An ECS service on supported AWS Fargate infrastructure has clean Inspector image findings, but security requires detection of malicious process activity. GuardDuty Runtime Monitoring and automated agent configuration were enabled after its long-running tasks started; their runtime coverage remains unhealthy. What should the team do?

    Show the answer

    Correct answerA. Redeploy the service's tasks and verify GuardDuty runtime coverage

    AWhy this is right: Relaunching tasks allows automated agent configuration to add the GuardDuty agent; coverage confirms monitoring.

    BWhy not this: Image rescanning identifies known package vulnerabilities, not malicious process activity in running tasks.

    CWhy not this: Inspector permissions and application-process restarts do not install the GuardDuty agent in existing tasks.

    DWhy not this: Lambda Protection monitors Lambda network activity, not process activity in ECS Fargate tasks.

    Existing Fargate tasks must be relaunched after automated agent configuration is enabled so the GuardDuty security agent can be added. Verify runtime coverage afterward; clean Inspector image findings do not establish runtime threat monitoring.

    Open this question
  19. Question 19

    Infrastructure Security

    A deployment role can create Lambda functions, but deployment fails when it assigns an approved execution role. The execution role trusts Lambda and has the required application permissions. What should the administrator add?

    Show the answer

    Correct answerB. Permission for the deployment role to pass the approved execution role

    AWhy not this: Function creation is performed by the deployment identity, not the function's execution role.

    BWhy this is right: iam:PassRole authorizes the deployment identity to assign the approved execution role to Lambda.

    CWhy not this: The execution role must trust Lambda, not the identity that deploys the function.

    DWhy not this: sts:AssumeRole permits obtaining role credentials; it does not authorize assigning the role to Lambda.

    The deployment role needs iam:PassRole to assign the approved execution role to Lambda; scope it to that role and, where appropriate, the Lambda service. Assuming the execution role is different from passing it to a service.

    Open this question
  20. Question 20

    Infrastructure Security

    A team packages Lambda functions as container images stored in private Amazon ECR repositories. It needs continuous detection of newly disclosed vulnerabilities in image operating-system and language packages. Which configuration BEST meets this requirement?

    Show the answer

    Correct answerB. Enable Amazon ECR enhanced continuous scanning for the repositories

    AWhy not this: Inspector Lambda scanning supports eligible ZIP-based functions, not container-image functions.

    BWhy this is right: Enhanced continuous scanning uses Inspector to assess eligible images for operating-system and language-package vulnerabilities.

    CWhy not this: GuardDuty Lambda Protection analyzes network activity for threats rather than image package vulnerabilities.

    DWhy not this: Basic scanning covers operating-system vulnerabilities and scan on push does not continuously reassess new disclosures.

    ECR enhanced scanning integrates with Amazon Inspector to continuously assess eligible images for operating-system and language-package vulnerabilities. Inspector Lambda scanning does not support functions packaged as container images.

    Open this question
  21. Question 21

    Infrastructure Security

    A CloudFront application must use AWS WAF geolocation to block requests originating in California while allowing other US states. Which rule arrangement meets this requirement?

    Show the answer

    Correct answerA. Count United States geographic matches, then block the resulting US-CA region label.

    AWhy this is right: Count mode permits evaluation to continue, allowing a later rule to block requests labeled as originating in California.

    BWhy not this: Labels added by a geographic match rule are available to subsequent rules, not earlier rules.

    CWhy not this: CloudFront country restrictions block the entire United States before AWS WAF can apply the state-specific decision.

    DWhy not this: A United States country match blocks every US state rather than only California.

    An AWS WAF geographic match rule adds country and region labels; a later rule can block the US-CA region label. A label match rule placed before the geographic rule cannot use labels that have not yet been added.

    Open this question
  22. Question 22

    Infrastructure Security

    An AWS WAF web ACL must rate-limit POST requests to /login and /reset separately for each client IP and path. Trusted office IPs must be exempt from this limit but remain subject to subsequent security rules; all other requests must be excluded from the rate count. Which design meets these requirements?

    Show the answer

    Correct answerA. Aggregate by IP and URI path; scope down to the specified POST paths, excluding the trusted IP set.

    AWhy this is right: Each IP-path pair receives its own rate count, while scope-down exclusions preserve evaluation by subsequent rules.

    BWhy not this: A terminating Allow action exempts trusted office requests from subsequent security rules, not just rate limiting.

    CWhy not this: Path-only aggregation combines requests from all clients to each path into one rate count.

    DWhy not this: IP-only aggregation combines a client's requests to both paths into one rate count.

    Custom aggregation by IP and URI path creates a separate rate count for each client-path pair. The scope-down statement excludes unrelated requests and trusted IPs; an earlier Allow rule would terminate evaluation and bypass subsequent security rules.

    Open this question
  23. Question 23

    Infrastructure Security

    A browser application at https://portal.example.com uses presigned URLs to read private S3 objects. The URLs work outside the browser, but browser requests fail because the bucket's CORS configuration permits only https://old.example.com. What should the security engineer do?

    Show the answer

    Correct answerD. Add https://portal.example.com and GET to the bucket's CORS rules.

    AWhy not this: Access-Control-Allow-Origin is a response header supplied by the server, not a permission granted by the requesting application.

    BWhy not this: Presigned URLs already authorize access; making objects public does not correct the CORS origin mismatch.

    CWhy not this: An AWS WAF allow rule does not configure the CORS response headers returned by S3.

    DWhy this is right: Permitting the application's origin and GET allows S3 to return the required CORS response headers.

    S3 CORS rules must permit the browser application's origin and request method. Granting public access changes authorization unnecessarily and does not resolve the mismatched CORS configuration.

    Open this question
  24. Question 24

    Infrastructure Security

    A device is already connected to AWS IoT Core and subscribed to its topics. Which AWS IoT policy actions authorize it to publish MQTT messages and to have messages delivered to it? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. iot:PublishD. iot:Receive

    AWhy not this: Returns the AWS IoT endpoint address rather than authorizing MQTT message exchange.

    BWhy not this: Authorizes retrieving a device shadow rather than general MQTT message exchange.

    CWhy this is right: Authorizes publishing MQTT messages to permitted topic resources.

    DWhy this is right: Authorizes delivery of MQTT messages on permitted topic resources.

    EWhy not this: Authorizes establishing a connection to AWS IoT Core, which the device already has.

    FWhy not this: Authorizes subscribing to topic filters, which the device has already done; delivery needs iot:Receive.

    iot:Publish authorizes sending MQTT messages, and iot:Receive authorizes delivery of messages to the device. Because the device is already connected and subscribed, iot:Connect and iot:Subscribe are already in place and do not authorize message delivery themselves.

    Open this question
  25. Question 25

    Infrastructure Security

    Where can a company subscribe to third-party managed rule groups for AWS WAF?

    Show the answer

    Correct answerD. AWS Marketplace

    AWhy not this: CloudFront Functions runs lightweight edge code rather than distributing managed WAF rule subscriptions.

    BWhy not this: AWS Artifact provides compliance reports and agreements rather than managed WAF rules.

    CWhy not this: Shield Advanced provides enhanced DDoS protection rather than third-party managed rule subscriptions.

    DWhy this is right: AWS Marketplace provides subscriptions to managed rule groups published by third-party vendors.

    AWS Marketplace offers third-party managed rule group subscriptions for AWS WAF. Shield Advanced provides enhanced DDoS protection, not a marketplace for vendor rule subscriptions.

    Open this question
  26. Question 26

    Infrastructure Security

    A third-party AWS WAF managed rule group blocks legitimate uploads through one identified rule. The team must monitor that rule's matches without blocking while retaining enforcement by the group's other rules. Which change best meets these requirements?

    Show the answer

    Correct answerD. Override the identified rule's action to Count

    AWhy not this: Excluding uploads from the group prevents its other rules from protecting that path.

    BWhy not this: A group-level Count override also suppresses enforcement from other blocking rules in the group.

    CWhy not this: An earlier Allow action terminates evaluation and bypasses the managed group's protections for uploads.

    DWhy this is right: A per-rule Count override records matches without disabling the other rules' enforcement.

    A rule action override to Count changes only the identified rule, preserving enforcement by other rules. A group-level Count override changes the group's returned result and can suppress blocking by other rules in that group.

    Open this question
  27. Question 27

    Infrastructure Security

    A CloudFront application must block requests from specified countries only for paths beginning with /checkout. Other paths must remain accessible from those countries. Which configuration meets these requirements?

    Show the answer

    Correct answerA. An AWS WAF rule combining geographic and URI path matches

    AWhy this is right: Combining country and path conditions blocks only requests that meet both conditions.

    BWhy not this: CORS controls browser access to responses, not geographic access to application paths.

    CWhy not this: CloudFront geographic restrictions cannot limit country blocking to selected URI paths.

    DWhy not this: A geographic rule without a path condition also blocks access to unrelated paths.

    AWS WAF can combine a geographic match with a URI path match using AND logic, limiting blocking to checkout requests. CloudFront geographic restrictions apply to the distribution, not selected paths.

    Open this question
  28. Question 28

    Infrastructure Security

    A company wants to ingest a third-party edge security provider's events into Amazon Security Lake as a custom source. The provider exports proprietary JSON. What preparation is required?

    Show the answer

    Correct answerB. Map events to OCSF and write them in Apache Parquet format

    AWhy not this: Compression alone does not supply the required OCSF schema or Parquet format.

    BWhy this is right: Custom sources must normalize events to OCSF and deliver them in Apache Parquet format.

    CWhy not this: CloudTrail JSON is not the required schema and storage format for custom-source events.

    DWhy not this: AWS WAF log JSON is not the required format for a Security Lake custom source.

    Amazon Security Lake custom sources must provide OCSF-compatible events in Apache Parquet format. Compressing proprietary JSON does not normalize its schema or satisfy the required storage format.

    Open this question
  29. Question 29

    Infrastructure Security

    An AWS WAF web ACL must rate-limit /login requests independently for each combination of client IP address and HTTP method. Other paths must not contribute to the counts. Which rate-based rule configuration meets these requirements?

    Show the answer

    Correct answerA. Aggregate by IP address and HTTP method; scope down to the /login path

    AWhy this is right: The composite keys separate client-method pairs, and the scope-down excludes other paths from counting.

    BWhy not this: IP-only aggregation combines all HTTP methods from a client into one counter.

    CWhy not this: Including the URI path separates paths, not HTTP methods.

    DWhy not this: Without a path scope-down, requests to other paths contribute to the client-method counters.

    Custom aggregation keys create separate rate counters for each IP address and HTTP method combination. A scope-down statement restricts counting to /login; adding the URI path as a key would not separate HTTP methods.

    Open this question
  30. Question 30

    Infrastructure Security

    A company wants private Amazon ECR images rescanned when new vulnerability intelligence becomes available, without requiring another image push. Which configuration BEST meets this requirement?

    Show the answer

    Correct answerD. Enable Amazon ECR enhanced scanning with continuous scanning.

    AWhy not this: Scanning on push evaluates an image when pushed, rather than continuously reevaluating it as vulnerability intelligence changes.

    BWhy not this: Runtime Monitoring detects suspicious runtime behavior; it does not continuously scan stored ECR images for known vulnerabilities.

    CWhy not this: Image validation tests verify configured image requirements; they do not provide continuous vulnerability rescanning of stored ECR images.

    DWhy this is right: Enhanced scanning uses Amazon Inspector to continuously reevaluate eligible images as vulnerability intelligence changes.

    ECR enhanced scanning integrates with Amazon Inspector and supports continuous rescanning as vulnerability intelligence changes, subject to configured eligibility. Basic scanning on push does not automatically rescan an existing image when new intelligence arrives.

    Open this question
  31. Question 31

    Infrastructure Security

    Which Systems Manager capability defines a recurring time period for running patching tasks on managed nodes?

    Show the answer

    Correct answerB. Maintenance Windows

    AWhy not this: Patch baselines define patch approval criteria, not the scheduled period for executing patching tasks.

    BWhy this is right: Maintenance Windows provides recurring schedules in which registered patching tasks can run.

    CWhy not this: Inventory collects metadata about managed nodes; it does not define patching periods.

    DWhy not this: Session Manager provides administrative sessions to managed nodes, not recurring patching periods.

    Maintenance Windows defines scheduled periods for operational tasks such as patching. Patch baselines determine which patches are approved, rather than when patching tasks run.

    Open this question
  32. Question 32

    Infrastructure Security

    Patch Manager reports an EC2 fleet compliant, but Amazon Inspector finds a critical OS vulnerability whose available fix is awaiting the baseline's seven-day approval delay. Policy requires remediation today; which action BEST meets it?

    Show the answer

    Correct answerD. Explicitly approve the fix in the applicable baseline, install it, and validate remediation.

    AWhy not this: An unchanged baseline can still report compliance because the fix has not yet met its approval rules.

    BWhy not this: More frequent vulnerability detection does not approve or install the available fix.

    CWhy not this: Suppressing a finding changes its visibility, not the vulnerable software or the remediation deadline.

    DWhy this is right: Explicit approval bypasses the waiting period for this fix; installation and validation address the actual vulnerability.

    Patch compliance is measured against the applicable baseline, so it can coexist with a vulnerability whose fix is not yet approved. Explicitly approving and installing the fix addresses the deadline; rescanning against unchanged approval rules does not remediate it.

    Open this question
  33. Question 33

    Infrastructure Security

    A scheduled Patch Manager installation used NoReboot, and several Linux nodes now report InstalledPendingReboot for kernel patches. The next maintenance window must complete remediation without installing additional patches; what should the engineer do?

    Show the answer

    Correct answerA. Reboot the affected nodes, then run a Scan operation.

    AWhy this is right: Rebooting activates changes requiring restart, and a subsequent scan refreshes the reported patch compliance state.

    BWhy not this: NoReboot leaves the required restart outstanding and does not complete remediation.

    CWhy not this: Approval controls patch eligibility; approving an installed patch again does not perform the required reboot.

    DWhy not this: A Scan operation evaluates patch state but does not reboot nodes, regardless of the reboot option.

    InstalledPendingReboot means installation occurred but a reboot is still required. Rebooting and rescanning completes the change and refreshes compliance; a Scan operation does not reboot nodes, even when RebootIfNeeded is specified.

    Open this question
  34. Question 34

    Infrastructure Security

    Amazon Inspector identifies a vulnerable application library in an ECS container image and in a Lambda ZIP deployment package. Which actions remediate the deployed workloads? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Update the container dependency, rebuild the image, and deploy a new ECS task definition revision.D. Update the Lambda dependency, rebuild the ZIP package, and deploy the updated function code.

    AWhy not this: Patch Manager does not manage Lambda execution environments or update libraries bundled in function deployment packages.

    BWhy this is right: Rebuilding with the fixed dependency and deploying the new image replaces the vulnerable library in the ECS workload.

    CWhy not this: Continuous scanning detects findings but does not update libraries in images or running tasks.

    DWhy this is right: Updating and redeploying the ZIP package replaces the vulnerable library bundled with the Lambda function.

    Application dependencies must be updated in their deployment artifacts and redeployed: a rebuilt container image for ECS and an updated ZIP package for Lambda. Continuous scanning detects vulnerabilities but does not replace vulnerable code.

    Open this question
  35. Question 35

    Infrastructure Security

    Production, development, and shared-services VPCs attach to one transit gateway; production and development must each reach shared services but must have no routed path to each other. With default association and propagation disabled and VPC-side routes configured, which transit gateway route-table design meets these requirements?

    Show the answer

    Correct answerD. Associate production and development with a table containing only shared-services routes; associate shared services with a table containing both workload routes

    AWhy not this: Separate tables provide no isolation when their routes still allow traffic to every VPC.

    BWhy not this: A common table containing all VPC routes provides production-to-development and development-to-production paths.

    CWhy not this: The workload table permits cross-environment routing, and the shared-services table lacks return routes to workloads.

    DWhy this is right: Workloads can route only to shared services, while the shared-services attachment has return routes to both workloads.

    The route table associated with an ingress attachment determines its forwarding paths. Workload attachments need only shared-services routes, while shared services needs return routes to both workloads; separate tables do not isolate workloads if both still contain every VPC route.

    Open this question
  36. Question 36

    Infrastructure Security

    EC2 instances in an IPv4-only processing subnet must access Amazon S3 in the same Region without having an internet route. Which design meets this requirement?

    Show the answer

    Correct answerC. Associate an S3 gateway endpoint with the subnet's route table

    AWhy not this: A NAT gateway supplies outbound internet connectivity rather than preserving the required routing isolation.

    BWhy not this: An egress-only internet gateway supports IPv6 internet egress, not private S3 access for IPv4-only instances.

    CWhy this is right: An S3 gateway endpoint provides a route to regional S3 without an internet gateway or NAT gateway.

    DWhy not this: An internet gateway default route violates the requirement to have no internet route.

    An S3 gateway endpoint adds a service-specific route without requiring an internet or NAT gateway. A NAT gateway enables outbound internet connectivity, which conflicts with keeping the subnet without an internet route.

    Open this question
  37. Question 37

    Infrastructure Security

    A private Application Load Balancer is published through AWS Verified Access, but office users connected through Direct Connect can still reach the load balancer directly without policy evaluation. Which change requires these users to pass through Verified Access while preserving their access to other VPC resources?

    Show the answer

    Correct answerA. Allow load balancer ingress only from the Verified Access endpoint security group

    AWhy this is right: Restricting backend ingress to the endpoint security group prevents clients from reaching the load balancer directly.

    BWhy not this: Corporate address ranges include the users taking the direct path, so this preserves the bypass.

    CWhy not this: Removing subnet routes can disrupt access to other resources and does not specifically secure the application entry point.

    DWhy not this: Corporate authentication alone does not force direct load balancer connections through Verified Access policy evaluation.

    Restricting the load balancer's security group to the Verified Access endpoint security group closes the direct backend path. Corporate source-address restrictions still allow office users to bypass Verified Access through Direct Connect.

    Open this question
  38. Question 38

    Infrastructure Security

    A company already authenticates remote application users through an AWS Verified Access identity trust provider. Access must also depend on whether each user's device is managed and compliant. What should the company configure?

    Show the answer

    Correct answerD. A device trust provider with policies that evaluate its signals

    AWhy not this: A VPN supplies network connectivity but does not add device compliance signals to Verified Access policies.

    BWhy not this: Additional user identity information does not establish whether a device is managed and compliant.

    CWhy not this: Network ACLs filter addresses and ports, not device management or compliance attributes.

    DWhy this is right: Device trust providers supply device posture signals for evaluation by Verified Access policies.

    A device trust provider supplies device security signals that Verified Access policies can evaluate. An identity trust provider supplies user identity information, not the required device compliance signals.

    Open this question
  39. Question 39

    Infrastructure Security

    An administrator needs native SSH access to an EC2 instance that has only a private IP address. Which service feature provides an IAM-authorized connection path without a bastion host or public IP address?

    Show the answer

    Correct answerC. An EC2 Instance Connect Endpoint

    AWhy not this: A maintenance window schedules management tasks; it does not provide an interactive SSH connection path.

    BWhy not this: An instance profile supplies AWS credentials to instance workloads, not a network path for administrators.

    CWhy this is right: The endpoint provides private connectivity to the instance without requiring a bastion host or public IP address.

    DWhy not this: A public key push provides temporary SSH authentication but does not establish connectivity to a private address.

    An EC2 Instance Connect Endpoint provides an IAM-authorized connection path to an instance through its private IP address. Pushing a public key with EC2 Instance Connect handles temporary SSH authentication but does not by itself provide network connectivity.

    Open this question
  40. Question 40

    Infrastructure Security

    Administrators need interactive access to managed EC2 instances without inbound ports, and compliance requires recording shell input and output. Which configuration meets these requirements while preventing administrators from choosing an unrecorded Session Manager transport?

    Show the answer

    Correct answerB. Enable session logging and restrict session initiation to an approved standard shell session document.

    AWhy not this: Session Manager cannot record port-forwarding contents, even when session logging is configured.

    BWhy this is right: A logged standard shell session records input and output; document restrictions prevent switching to an unlogged transport.

    CWhy not this: CloudTrail records API activity, and Session Manager does not record the contents of SSH sessions.

    DWhy not this: VPC Flow Logs capture network metadata, not shell input and output; SSH session contents are not recorded by Session Manager.

    Standard Session Manager shell sessions support input and output logging; restricting the permitted session document prevents use of SSH or port forwarding instead. CloudTrail records session API activity, not shell contents, and Session Manager cannot log SSH or port-forwarding session contents.

    Open this question
  41. Question 41

    Infrastructure Security

    A release pipeline starts an asynchronous source-code security scan, but deployments sometimes proceed before findings are available. Policy requires blocking releases with high-severity findings or an unsuccessful scan; which pipeline change BEST enforces this policy?

    Show the answer

    Correct answerA. Wait for scan completion and gate deployment on scan status and finding severity.

    AWhy this is right: Waiting and evaluating both scan status and severity blocks failed scans and releases that violate the finding threshold.

    BWhy not this: An uploaded report can contain high-severity findings or describe an unsuccessful scan.

    CWhy not this: Earlier repository results may describe different code and cannot validate the current release.

    DWhy not this: Submission success does not establish scan completion or the absence of high-severity findings.

    The deployment gate must await the current scan and evaluate both successful completion and finding severity. Successful submission only confirms that scanning started; it does not establish that the release passed security analysis.

    Open this question
  42. Question 42

    Infrastructure Security

    A private EC2 instance has a current SSM Agent, the required IAM permissions, and no internet route; Session Manager connections fail. Private DNS is enabled on its Systems Manager interface endpoints, but the ssmmessages endpoint security group allows no inbound traffic; what should the administrator change?

    Show the answer

    Correct answerA. Allow inbound TCP 443 to the endpoint from the instance security group.

    AWhy this is right: The endpoint must accept the agent's outbound HTTPS connection on TCP 443.

    BWhy not this: Session Manager does not use inbound SSH connections to the managed instance.

    CWhy not this: The agent initiates the connection, so inbound HTTPS on the instance does not fix blocked endpoint ingress.

    DWhy not this: The ssmmessages service uses HTTPS on TCP 443, not SSH on TCP 22.

    SSM Agent initiates HTTPS connections to the ssmmessages endpoint, whose security group must accept TCP 443 from the instance. Opening inbound HTTPS on the instance reverses the connection direction and does not resolve the endpoint's blocked ingress.

    Open this question
  43. Question 43

    Infrastructure Security

    A team wants its build pipeline to detect application code that passes untrusted request data into database queries before deployment. Which control BEST addresses this requirement?

    Show the answer

    Correct answerB. Run source-code security analysis with data-flow rules during the build.

    AWhy not this: Package scanning finds known component vulnerabilities, not unsafe data flow in custom application code.

    BWhy this is right: Data-flow analysis can trace untrusted request data into unsafe database operations before deployment.

    CWhy not this: Runtime monitoring detects behavior after deployment rather than identifying the code flaw during the build.

    DWhy not this: Patching build workers secures build infrastructure but does not analyze application query construction.

    Source-code security analysis with data-flow rules can identify untrusted input reaching unsafe database operations before deployment. Container package scanning identifies known package vulnerabilities, not flaws in how application code constructs queries.

    Open this question
  44. Question 44

    Infrastructure Security

    A generative AI assistant reads external supplier messages and can invoke a payment tool; a malicious message could influence its decisions. Which controls MOST directly limit unauthorized payments even if the model follows the message's instructions? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Require independent human approval before executing payments.B. Restrict the payment tool to backend-enforced payees and transaction limits.

    AWhy this is right: An independent approval gate prevents the model from completing payments on its own.

    BWhy this is right: Backend restrictions limit payment capabilities independently of the model's decisions.

    CWhy not this: Prompt instructions do not constrain tool execution once the model follows malicious content.

    DWhy not this: Grounding against malicious source material does not establish that a requested payment is authorized.

    Independent approval and backend-enforced transaction restrictions limit the consequences of excessive agency even when prompt injection succeeds. System-prompt instructions can help guide behavior but do not enforce payment authorization.

    Open this question
  45. Question 45

    Infrastructure Security

    A pipeline pushes container images to Amazon ECR. Policy requires that images with critical vulnerabilities are never deployed, including vulnerabilities published after an image was pushed. Which approach meets this requirement?

    Show the answer

    Correct answerD. Enable Amazon Inspector continuous scanning for the repository and gate deployment on critical findings.

    AWhy not this: A scan made only at push time does not reflect vulnerabilities published later.

    BWhy not this: Source-code analysis does not find vulnerable packages inside the container image.

    CWhy not this: Tag immutability prevents overwriting tags; it does not detect vulnerabilities.

    DWhy this is right: Continuous enhanced scanning updates findings when new vulnerabilities appear, and the gate blocks critical ones.

    Amazon Inspector enhanced scanning rescans repository images when new vulnerabilities are published, so a deployment gate that checks current critical findings also catches issues found after the push. A scan made only on push misses later vulnerabilities, and source-code analysis does not cover operating system packages in the image.

    Open this question
  46. Question 46

    Infrastructure Security

    A support application inserts model-generated summaries directly into an HTML page, where a crafted response could execute browser script. Which control MOST directly addresses this risk?

    Show the answer

    Correct answerC. Apply context-aware output encoding before rendering.

    AWhy not this: A grounded response can still contain markup that is unsafe to render directly.

    BWhy not this: A short response can still contain executable markup; length limits do not make rendering safe.

    CWhy this is right: Context-aware encoding prevents untrusted generated text from being interpreted as executable page content.

    DWhy not this: Harmful-content filtering does not provide HTML-context escaping or prevent script execution.

    Treat model output as untrusted and apply context-aware encoding before inserting it into HTML. Harmful-content filtering classifies content but is not a substitute for preventing browser interpretation of executable markup.

    Open this question
  47. Question 47

    Infrastructure Security

    An Amazon Bedrock chatbot must mask supported personally identifiable information in generated responses before displaying them. Which control BEST meets this requirement?

    Show the answer

    Correct answerD. A Guardrails sensitive-information policy

    AWhy not this: Contextual grounding checks assess grounding and relevance, not PII masking.

    BWhy not this: Denied-topic policies restrict specified topics, not individual PII values within otherwise permitted responses.

    CWhy not this: Harmful-content policies address categories such as hate and violence rather than masking PII.

    DWhy this is right: Sensitive-information policies support masking detected PII types in model responses.

    Amazon Bedrock Guardrails sensitive-information policies can detect and mask supported PII types. Denied-topic policies restrict subject matter rather than identifying and masking individual sensitive values.

    Open this question
  48. Question 48

    Infrastructure Security

    A multi-tenant retrieval-augmented generation application shares a document index, and users can manipulate prompts and request parameters. Which design BEST prevents cross-tenant disclosure while preserving retrieval of each tenant's documents?

    Show the answer

    Correct answerB. Derive tenant scope from authenticated identity and enforce it during retrieval before model invocation.

    AWhy not this: Sensitive-information filters do not determine whether a user is authorized to see another tenant's business data.

    BWhy this is right: Trusted identity establishes tenant scope, and retrieval enforcement keeps unauthorized documents out of model context.

    CWhy not this: An attacker can change a caller-supplied tenant identifier unless the backend independently validates authorization.

    DWhy not this: Prompt instructions are not an authorization boundary and can leave unauthorized documents in model context.

    Tenant authorization must be enforced outside the model using trusted identity, before documents enter its context. A retrieval filter based on a caller-supplied tenant identifier can be manipulated and does not establish authorization.

    Open this question
  49. Question 49

    Infrastructure Security

    Amazon Inspector identifies unnecessary internet access to TCP port 22 on an EC2 instance whose intended SSH source is a corporate CIDR. One attached security group permits SSH from that CIDR, while another permits all TCP traffic from 0.0.0.0/0; which change removes public SSH access while preserving public HTTPS?

    Show the answer

    Correct answerA. Replace the all-TCP rule with a rule permitting TCP port 443 from 0.0.0.0/0.

    AWhy this is right: Removing the broad TCP permission eliminates public SSH while retaining public HTTPS and corporate SSH.

    BWhy not this: The other security group's all-TCP rule would still permit public SSH access.

    CWhy not this: Removing the internet route would also disrupt the required public HTTPS access.

    DWhy not this: Security groups support allow rules, not explicit deny rules.

    Permissions from attached security groups are combined, so the broad all-TCP rule exposes SSH despite the restricted rule. Replacing it with HTTPS-only access preserves public HTTPS; narrowing the other group's SSH rule does not remove the broad permission.

    Open this question
  50. Question 50

    Infrastructure Security

    Production and development VPCs share a transit gateway route table that propagates routes from every attachment. Both environments must reach a shared-services VPC but must not reach each other, even if their security groups permit traffic; which design meets this requirement?

    Show the answer

    Correct answerC. Associate production and development with separate route tables containing only shared-services routes; give shared services return routes to both.

    AWhy not this: Routes between production and development remain, while shared-services reachability is removed.

    BWhy not this: Internet gateway routes control internet connectivity, not private connectivity through the transit gateway.

    CWhy this is right: Each environment learns only the shared-services route, while shared services retains the return paths needed for communication.

    DWhy not this: Propagating every attachment's routes into both tables preserves production-to-development connectivity.

    Separate transit gateway route tables can provide shared-services reachability without routes between production and development. Separate tables alone do not provide isolation if both still learn every attachment's routes.

    Open this question