A team is deploying a containerized API to a public cloud. The service must be reachable only by internal corporate applications, and secrets must not be embedded in images or readable as plaintext by administrators of the underlying host. Which two actions best fit the design? Select two.
Answer choices
Why each option matters
Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.
Best answer
Place the API in a private subnet and expose it only through an internal load balancer or private endpoint.
Private subnets and internal endpoints keep the service off the public internet while still allowing controlled access from trusted corporate systems. This reduces exposure, simplifies firewall policy, and supports the requirement that only internal applications can reach the API. It is a common secure cloud architecture pattern for internal services.
Distractor review
Give each container a public IP and restrict access by source IP allowlist.
Source IP filtering may reduce exposure, but public IPs still make the service broadly addressable and easier to scan or attack. The scenario explicitly says the service must be reachable only by internal applications, so keeping it private is a better architectural choice than relying on external allowlists alone.
Best answer
Store secrets in a managed vault and retrieve them at runtime with short-lived IAM permissions.
Using a managed secrets vault avoids hardcoding credentials in images, source code, or environment files. Short-lived permissions reduce the value of stolen credentials and limit what an attacker can do if a token is compromised. This is the right pattern for protecting secrets from both operators and runtime exposure.
Distractor review
Bake database passwords into the container image so deployment is simpler.
Embedding secrets in an image is risky because the image may be copied, cached, scanned, or retained long after deployment. Anyone with access to the image can potentially extract the password. Simplicity does not outweigh the security and lifecycle problems created by hardcoded credentials.
Distractor review
Assume the cloud provider's tenant isolation alone is enough to protect secrets from misuse.
Tenant isolation protects one customer from another, but it does not solve application-level secret handling or misuse by authorized insiders. The scenario requires the secrets not be readable in plaintext from the host or image, which calls for explicit secret management and permission controls, not trust in isolation alone.
Common exam trap
Common exam trap: usable hosts are not the same as total addresses
Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.
Technical deep dive
How to think about this question
Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.
KKey Concepts to Remember
- CIDR notation defines the prefix length.
- Block size helps identify subnet boundaries.
- Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
- The required host count determines the smallest suitable subnet.
TExam Day Tips
- Write the block size before choosing the subnet.
- Check whether the question asks for hosts, subnets or a specific address range.
- Do not confuse /24, /25, /26 and /27 host counts.
Related practice questions
Related SY0-701 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Security+ social engineering questions
Practise SY0-701 questions linked to Security+ social engineering questions.
Security+ cryptography practice questions
Practise SY0-701 questions linked to Security+ cryptography.
Security+ IAM questions
Practise SY0-701 questions linked to Security+ IAM questions.
Security+ risk management questions
Practise SY0-701 questions linked to Security+ risk management questions.
Security+ incident response questions
Practise SY0-701 questions linked to Security+ incident response questions.
Security+ malware questions
Practise SY0-701 questions linked to Security+ malware questions.
Security+ vulnerability management questions
Practise SY0-701 questions linked to Security+ vulnerability management questions.
Security+ security operations questions
Practise SY0-701 questions linked to Security+ security operations questions.
Security+ zero trust questions
Practise SY0-701 questions linked to Security+ zero trust questions.
Security+ authentication factors questions
Practise SY0-701 questions linked to Security+ authentication factors questions.
More questions from this exam
Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.
Question 1
A laptop is suspected of being used in a malware incident. It is still powered on and connected to Wi-Fi. What should the responder do before shutting it down?
Question 2
An employee reports a ransomware note on a file server. The server is still powered on, shares are still being accessed, and management wants service restored as quickly as possible. What should the incident response team do first?
Question 3
An employee reports a ransomware note on a finance laptop. The laptop is still powered on, connected to Wi-Fi, and the user says they were just working in a spreadsheet. Management wants the fastest safe response that also preserves evidence. What should the responder do first?
Question 4
You are handed a company laptop suspected in an insider theft case. Legal says the evidence may be needed in court. Which action best preserves admissibility?
Question 5
A developer wants to reduce the risk of SQL injection in a new customer search form. Which two changes are the best mitigations? Select two.
Question 6
A branch office uses a flat LAN, and a compromise on one user workstation could spread quickly to finance systems. Management wants finance workstations isolated from general users, but finance staff still need access to a central finance application and network printer. What is the best design change?
FAQ
Questions learners often ask
What does this SY0-701 question test?
CIDR notation defines the prefix length.
What is the correct answer to this question?
The correct answer is: Place the API in a private subnet and expose it only through an internal load balancer or private endpoint. — The best design keeps the API private and uses a dedicated secret-management service. Private networking ensures the service is reachable only from approved internal systems, while the vault-based secret pattern keeps credentials out of images and prevents plaintext exposure during deployment. Combined, these controls address both access scope and secret protection without relying on weak compensating measures. Why others are wrong: Public IPs with allowlists still leave the service directly exposed and increase the attack surface. Baking passwords into images is insecure because images are copied and cached. Tenant isolation is important, but it does not replace application-level controls for secrets or internal-only access. The scenario needs intentional design, not assumptions about the cloud environment.
What should I do if I get this SY0-701 question wrong?
Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.
Discussion
Sign in to join the discussion.