with verified answers
"You need to store sensitive information Ans✓✓✓ such as passwords,
in the database. What is the best practice? a) Store passwords in plain
text. b) Encrypt the passwords before storing them. c) Use hashing
algorithms to store the passwords. d) Store passwords in a separate file
outside the database.","b or c) Encrypting is generally preferred as it
allows for decryption if needed (though this should be avoided unless
absolutely necessary). Hashing is more secure for passwords as it's one-
way, making it impossible to retrieve the original password. Plain text is
highly insecure. Storing passwords outside the database doesn't
inherently improve security."
A team member is leaving the project. How should their user account
be handled? a) Delete the user account. b) Deactivate the user account.
c) Transfer ownership of the user's modules to another team member.
d) Change the user's password. Ans✓✓✓ "b) Deactivating prevents
access while preserving the user's contributions. Deleting loses history.
Transferring might not be appropriate depending on the situation.
Changing the password is insufficient as it doesn't prevent access
through other means (e.g., if the user is still logged in elsewhere)."
A team of developers is working on a large application. They frequently
encounter merge conflicts when publishing their changes. What's the
best practice to minimize these conflicts? a) Have each developer work
on a separate module. b) Use LifeTime to manage versioning and
deployments. c) Communicate frequently and coordinate changes
among team members. d) Publish changes more frequently to reduce
,the size of individual updates. Ans✓✓✓ "c) Communication and
coordination are paramount to avoid merge conflicts. While working on
separate modules can help, it doesn't eliminate the possibility of
conflicts when integrating functionalities. LifeTime helps manage
versions but doesn't prevent conflicts entirely. More frequent
publishing reduces the scope of merges but requires more discipline
and might disrupt other developers."
A Timer is taking longer than its allocated timeout to complete. What's
the best approach to address this? a) Increase the timeout value for the
Timer. b) Optimize the Timer's logic to reduce execution time. c) Break
the Timer's logic into smaller chunks and reschedule. d) Run the Timer
on a dedicated server. Ans✓✓✓ "c) Breaking down the logic allows the
Timer to complete within the timeout, and rescheduling ensures all
parts run. Increasing timeout might mask underlying performance
issues. Optimizing is ideal but might not always be enough. A dedicated
server can help but is a larger infrastructure change."
A web screen contains a large amount of JavaScript code that is slowing
down the page load. How can you improve performance? a) Move the
JavaScript code to a Server Action. b) Minify the JavaScript code and
include it as a resource. c) Embed the JavaScript code directly into the
HTML. d) Break the JavaScript code into smaller files and load them
dynamically. Ans✓✓✓ "b) Minifying reduces file size, improving load
times. Including it as a resource ensures it's managed within the
module. Server Actions are for server-side logic, not client-side
JavaScript. Embedding in HTML is less maintainable. Breaking into
smaller files can be beneficial but adds complexity."
, A web screen is experiencing slow loading times due to a large number
of images. What's the best practice to optimize this? a) Reduce the size
of the images. b) Use CSS sprites to combine multiple images into one.
c) Lazy load the images as they become visible. d) All of the above.
Ans✓✓✓ d) All options are valid ways to optimize images for web
performance.
An application uses several hardcoded values throughout the logic.
What's the best practice to improve maintainability? a) Store the values
in Site Properties. b) Create a Static Entity to hold the values. c) Use
local variables within each action. d) Store the values in a separate
database table. Ans✓✓✓ "b) Static Entities are designed for holding
constant values, making them ideal for this purpose. Site Properties are
for environment-specific settings, not application logic constants. Local
variables are not suitable for globally accessible values. A separate
database table is overkill for simple constants."
How can you ensure a timer is efficient? A. Run during peak hours | B.
Use long durations | C. Schedule during off-peak hours | D. Ignore
failures Ans✓✓✓ " ""C. Schedule during off-peak hours"""
How can you improve integration performance? A. Use multiple calls |
B. Optimize API endpoints | C. Use complex logic | D. Ignore
performance Ans✓✓✓ " ""B. Optimize API endpoints"""