A security architect examines a section of code and discovers the following:
char username[20]
char password[20]
gets(username)
checkUserExists(username)
Which of the following changes should the security architect require before approving the code for release?
A. Allow only alphanumeric characters for the username.
B. Make the password variable longer to support more secure passwords.
C. Prevent more than 20 characters from being entered.
D. Add a password parameter to the checkUserExists function.
Show Answer
Correct Answer: C
Explanation: `gets()` reads input without checking the destination buffer’s size, so input longer than the `username` array can cause a buffer overflow. Replace it with bounded input (such as `fgets`) and reject or safely handle input that exceeds the buffer’s capacity. A 20-byte array can hold at most 19 characters plus the terminating null byte.
Question 115
An analyst has prepared several possible solutions to a successful attack on the company. The solutions need to be implemented with the least amount of downtime. Which of the following should the analyst perform?
A. Implement all the solutions at once in a virtual lab and then run the attack simulation. Collect the metrics and then choose the best solution based on the metrics.
B. Implement every solution one at a time in a virtual lab, running a metric collection each time. After the collection, run the attack simulation, roll back each solution, and then implement the next. Choose the best solution based on the best metrics.
C. Implement every solution one at a time in a virtual lab, running an attack simulation each time while collecting metrics. Roll back each solution and then implement the next. Choose the best solution based on the best metrics.
D. Implement all the solutions at once in a virtual lab and then collect the metrics. After collection, run the attack simulation. Choose the best solution based on the best metrics.
Show Answer
Correct Answer: C
Explanation: Test each solution separately in the virtual lab by running the attack simulation while collecting metrics. Rolling back before testing the next solution lets the analyst compare each solution’s effectiveness and downtime impact without the results being confounded by other changes.
Question 116
An organization is looking to establish more robust security measures by implementing PKI. Which of the following should the security analyst implement when considering mutual authentication?
A. Perfect forward secrecy on both endpoints
B. Shared secret for both endpoints
C. Public keys on both endpoints
D. A common public key on each endpoint
E. A common private key on each endpoint
Show Answer
Correct Answer: C
Explanation: PKI-based mutual authentication requires each endpoint to present and validate a certificate containing its public key. Each endpoint also proves possession of its corresponding private key; the endpoints do not share a common key.
Question 117
A security architect is analyzing an old application that is not covered for maintenance anymore because the software company is no longer in business. Which of the following techniques should have been implemented to prevent these types of risks?
A. Code reviews
B. Supply chain visibility
C. Software audits
D. Source code escrows
Show Answer
Correct Answer: D
Explanation: Source code escrow places the application’s source code with a trusted third party for release to the customer under agreed conditions, such as the vendor going out of business. This can allow the customer to continue maintaining the application.
Question 118
Based on a recent security audit, a company discovered the perimeter strategy is inadequate for its recent growth. To address this issue, the company is looking for a solution that includes the following requirements:
• Collapse of multiple network security technologies into a single footprint
• Support for multiple VPNs with different security contexts
• Support for application layer security (Layer 7 of the OSI Model)
Which of the following technologies would be the most appropriate solution given these requirements?
A. NAT gateway
B. Reverse proxy
C. NGFW
D. NIDS
Show Answer
Correct Answer: C
Explanation: An NGFW consolidates multiple perimeter security functions in one platform, can support VPNs with separate security contexts, and provides application-layer (Layer 7) inspection and control.
Question 119
A cyberanalyst has been tasked with recovering PDF files from a provided image file. Which of the following is the best file-carving tool for PDF recovery?
A. objdump
B. Strings
C. dd
D. Foremost
Show Answer
Correct Answer: D
Explanation: Foremost is a file-carving tool designed to recover files from disk images by identifying file signatures, including those of PDFs. objdump and strings are analysis utilities, while dd copies raw data rather than carving files.
Question 120
An organization handles sensitive information that must be displayed on call center technicians’ screens to verify the identities of remote callers. The technicians use three randomly selected fields of information to complete the identity verification process. Some of the fields contain PII that are unique identifiers for the remote callers. Which of the following should be implemented to identify remote callers while also reducing the risk that technicians could improperly use the identification information?
A. Data masking
B. Encryption
C. Tokenization
D. Scrubbing
E. Substitution
Show Answer
Correct Answer: A
Explanation: Data masking can hide portions of sensitive identifiers while leaving enough information visible for technicians to verify callers. This reduces exposure of complete PII and the risk of misuse.
Question 121
A security engineer needs to select the architecture for a cloud database that will protect an organization’s sensitive data. The engineer has a choice between a single-tenant or a multitenant database architecture offered by a cloud vendor. Which of the following best describes the security benefits of the single-tenant option? (Choose two.)
A. Most cost-effective
B. Ease of backup and restoration
C. High degree of privacy
D. Low resilience to side-channel attacks
E. Full control and ability to customize
F. Increased geographic diversity
Show Answer
Correct Answer: C, E
Explanation: A single-tenant database dedicates its environment to one organization, providing stronger isolation and privacy from other tenants. It also gives the organization greater control over configuration and security customization.
Question 122
Which of the following is record-level encryption commonly used to do?
A. Protect database fields.
B. Protect individual files.
C. Encrypt individual packets.
D. Encrypt the master boot record.
Show Answer
Correct Answer: A
Explanation: Record-level encryption protects specific records or fields within a database.
Question 124
An organization is developing a disaster recovery plan that requires data to be backed up and available at a moment’s notice. Which of the following should the organization consider first to address this requirement?
A. Implement a change management plan to ensure systems are using the appropriate versions.
B. Hire additional on-call staff to be deployed if an event occurs.
C. Design an appropriate warm site for business continuity.
D. Identify critical business processes and determine associated software and hardware requirements.
Show Answer
Correct Answer: D
Explanation: First identify the critical business processes and their supporting software and hardware. This establishes what data and systems must be backed up and how quickly they need to be available, before choosing recovery solutions such as a warm site.
$19
Get all 406 questions with detailed answers and explanations
Instant download HTML + PDF delivered the moment payment clears.
Secure Stripe checkout we never see or store your card details.
7-day refund if files are defective see our refund policy.